aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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