summaryrefslogtreecommitdiffstats
path: root/update_all_submodules
diff options
context:
space:
mode:
authorAutomated System <kb9vqf@pearsoncomputing.net>2011-11-04 15:32:44 -0500
committerAutomated System <kb9vqf@pearsoncomputing.net>2011-11-04 15:32:44 -0500
commitd3ca02e59179e9ff743a94f257c0ac10158d7f7a (patch)
tree3afc304eb40d469af0b0987d95965227743c757d /update_all_submodules
parent5020be6de185c0dc8b9c2ac82ccca21d6aa3c36d (diff)
downloadscripts-d3ca02e59179e9ff743a94f257c0ac10158d7f7a.tar.gz
scripts-d3ca02e59179e9ff743a94f257c0ac10158d7f7a.zip
Update the update script
Diffstat (limited to 'update_all_submodules')
-rwxr-xr-xupdate_all_submodules7
1 files changed, 7 insertions, 0 deletions
diff --git a/update_all_submodules b/update_all_submodules
index 74cdfbd..5f21cfd 100755
--- a/update_all_submodules
+++ b/update_all_submodules
@@ -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