diff options
author | Andrew Manning <tamanning@zoho.com> | 2015-11-30 07:49:56 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2015-11-30 07:49:56 -0500 |
commit | b1f4b9759b34249540d81aed724aa023153e2b53 (patch) | |
tree | e509b271b88eebec26f646593aeb61448318fd6a /util | |
parent | 29877963be2f13607976df84e1c88a161714a4a6 (diff) | |
download | volse-hubzilla-b1f4b9759b34249540d81aed724aa023153e2b53.tar.gz volse-hubzilla-b1f4b9759b34249540d81aed724aa023153e2b53.tar.bz2 volse-hubzilla-b1f4b9759b34249540d81aed724aa023153e2b53.zip |
Abort addon update if repo does not exist
Diffstat (limited to 'util')
-rwxr-xr-x | util/update_addon_repo | 7 |
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 |