diff --git a/.laminar b/.laminar index d2ba65b..ddbcc5b 100755 --- a/.laminar +++ b/.laminar @@ -13,7 +13,6 @@ then invoker="\e[{${invoker:-}\e\\" [ -z "${invoker}" ] || echo -e "Invoked from $invoker" - uninitialized=0 # prepare submodules green "Preparing submodules..." git submodule | awk '{print $2}' | while read submodule @@ -22,16 +21,16 @@ then if [ ! -d "$submodule/.git" ] then echo "Moudle is unitialized..." - uninitialized=1 + touch .uninitialized fi done - echo un: $uninitialized - if [ $uninitialized -eq 1 ] + if [ -f .uninitialized ] then green "submodule init & sync" git submodule init git submodule sync + rm .uninitialized fi # name