From d3ca02e59179e9ff743a94f257c0ac10158d7f7a Mon Sep 17 00:00:00 2001 From: Automated System Date: Fri, 4 Nov 2011 15:32:44 -0500 Subject: [PATCH] Update the update script --- update_all_submodules | 7 +++++++ 1 file changed, 7 insertions(+) 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