Touch uninitialized file
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
parent
bb4cc49f03
commit
b40bb460c2
7
.laminar
7
.laminar
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user