From b40bb460c218235a8820881e699faa30d95c26fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek?= Date: Sat, 25 Jun 2022 22:38:35 +0200 Subject: [PATCH] Touch uninitialized file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Valíček --- .laminar | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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