Submodule init when not done
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
parent
da32755c15
commit
054d485761
16
.laminar
16
.laminar
|
@ -13,13 +13,27 @@ then
|
|||
|
||||
invoker="\e[{${invoker:-}\e\\"
|
||||
[ -z "${invoker}" ] || echo -e "Invoked from $invoker"
|
||||
|
||||
|
||||
unitialized=false
|
||||
# prepare submodules
|
||||
green "Preparing submodules..."
|
||||
git submodule | awk '{print $2}' | while read submodule
|
||||
do
|
||||
echo "Submodule: $submodule"
|
||||
if [ ! -d "$submodule/.git" ]
|
||||
then
|
||||
echo "Moudle is unitialized..."
|
||||
unititialized=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! $uninitialized -eq 0 ]
|
||||
then
|
||||
green "submodule init & sync"
|
||||
git submodule init
|
||||
git submodule sync
|
||||
fi
|
||||
|
||||
# name
|
||||
nn=repo_checker_$PYTHON
|
||||
nn=$(echo $nn | sed 's/\./_/g')
|
||||
|
|
Loading…
Reference in New Issue
Block a user