|
|
@ -1,5 +1,13 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -e /var/lock/update-tde-git-submodules ]]; then
|
|
|
|
|
|
|
|
echo "TDE GIT submodules are currently being updated"
|
|
|
|
|
|
|
|
echo "If this is not the case, please remove the lockfile /var/lock/update-tde-git-submodules"
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
touch /var/lock/update-tde-git-submodules
|
|
|
|
|
|
|
|
|
|
|
|
PARENTDIR=$PWD
|
|
|
|
PARENTDIR=$PWD
|
|
|
|
echo "Working in $PARENTDIR"
|
|
|
|
echo "Working in $PARENTDIR"
|
|
|
|
if [[ ! -d .git ]]; then
|
|
|
|
if [[ ! -d .git ]]; then
|
|
|
@ -40,3 +48,8 @@ do
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
exec 3>&-
|
|
|
|
exec 3>&-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Let the disk subsystem recover
|
|
|
|
|
|
|
|
sleep 60
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rm /var/lock/update-tde-git-submodules
|
|
|
|