Touch uninitialized file

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
Václav Valíček 2022-06-25 22:38:35 +02:00
parent bb4cc49f03
commit b40bb460c2
Signed by: valicek
GPG Key ID: FF05BDCA0C73BB31

View File

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