aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-02 09:08:25 +1100
committerredmatrix <redmatrix@redmatrix.me>2015-12-02 09:08:25 +1100
commitbe7b706486eb3677d9afd2a2c89d87a6b809e422 (patch)
tree4fa1ac205a93b31322675c2f1d4e3e5a3ed33547
parent78e18fcdcfaa879db1d7bf487c2e5de0e43e34b0 (diff)
parentd4b04d22eda4e60f5c6d11d1cb2223dee912783a (diff)
downloadvolse-hubzilla-be7b706486eb3677d9afd2a2c89d87a6b809e422.tar.gz
volse-hubzilla-be7b706486eb3677d9afd2a2c89d87a6b809e422.tar.bz2
volse-hubzilla-be7b706486eb3677d9afd2a2c89d87a6b809e422.zip
Merge pull request #200 from anaqreon/update-addon-script
Update addon script
-rwxr-xr-xutil/update_addon_repo7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/update_addon_repo b/util/update_addon_repo
index 5b531e6a5..ba1862f4b 100755
--- a/util/update_addon_repo
+++ b/util/update_addon_repo
@@ -7,7 +7,12 @@ if [ $# -ne 1 ]; then
exit 1
fi
-cd extend/addon/$1
+if [ -d extend/addon/$1 ] ; then
+ cd extend/addon/$1
+else
+ echo "$1 not found. Aborting..."
+ exit 1
+fi
if [ -d .git ] ; then
git pull