@ -2,6 +2,13 @@
PARENTDIR=$PWD
echo "Working in $PARENTDIR"
if [[ ! -d .git ]]; then
echo "Current directory does not contain a .git folder. Exiting..."
exit 1
fi
git pull
git reset --hard HEAD
git clean -d -x -f
exec 3< submodules
while read <&3