aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/add_addon_repo3
-rwxr-xr-xutil/add_theme_repo2
2 files changed, 3 insertions, 2 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`
diff --git a/util/add_theme_repo b/util/add_theme_repo
index d2e4b21a5..70a8c6432 100755
--- a/util/add_theme_repo
+++ b/util/add_theme_repo
@@ -8,7 +8,7 @@ fi
mkdir -p extend/theme/$2
git clone $1 extend/theme/$2
-if [ $? -eq '0' ]; then
+if [ $? -ne 0 ]; then
exit $?
fi