aboutsummaryrefslogtreecommitdiffstats
path: root/util/add_addon_repo
diff options
context:
space:
mode:
Diffstat (limited to 'util/add_addon_repo')
-rwxr-xr-xutil/add_addon_repo3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/add_addon_repo b/util/add_addon_repo
index 130c0a0cd..4979c06bc 100755
--- a/util/add_addon_repo
+++ b/util/add_addon_repo
@@ -8,12 +8,13 @@ fi
mkdir -p extend/addon/$2
mkdir addon > /dev/null 2>&1
git clone $1 extend/addon/$2
-if [ $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
exit $?
fi
filelist=(`ls extend/addon/$2`)
+
cd addon
for a in "${filelist[@]}" ; do
base=`basename $a`