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\\"
|
||||
[ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user