aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2015-11-30 07:49:56 -0500
committerAndrew Manning <tamanning@zoho.com>2015-11-30 07:49:56 -0500
commitb1f4b9759b34249540d81aed724aa023153e2b53 (patch)
treee509b271b88eebec26f646593aeb61448318fd6a
parent29877963be2f13607976df84e1c88a161714a4a6 (diff)
downloadvolse-hubzilla-b1f4b9759b34249540d81aed724aa023153e2b53.tar.gz
volse-hubzilla-b1f4b9759b34249540d81aed724aa023153e2b53.tar.bz2
volse-hubzilla-b1f4b9759b34249540d81aed724aa023153e2b53.zip
Abort addon update if repo does not exist
-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