aboutsummaryrefslogtreecommitdiffstats
path: root/util/update_addon_repo
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-12-02 09:44:42 +0100
committerMario Vavti <mario@mariovavti.com>2015-12-02 09:44:42 +0100
commit857e13e9b8ee4fe2c27cd9737f0396cb669cb8ad (patch)
tree2f5efa0bee35763b066919f0048208f5de4726c2 /util/update_addon_repo
parent593423434c0c0e8d1ebb43d97b2dda7e6b4d67bd (diff)
parent25caeee8547df73a7162dc6de30a030fa0bceea8 (diff)
downloadvolse-hubzilla-857e13e9b8ee4fe2c27cd9737f0396cb669cb8ad.tar.gz
volse-hubzilla-857e13e9b8ee4fe2c27cd9737f0396cb669cb8ad.tar.bz2
volse-hubzilla-857e13e9b8ee4fe2c27cd9737f0396cb669cb8ad.zip
Merge branch 'master' of https://github.com/redmatrix/hubzilla
Diffstat (limited to 'util/update_addon_repo')
-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