diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/add_addon_repo | 3 | ||||
-rwxr-xr-x | util/add_theme_repo | 2 |
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 |