diff --git a/build-ubunturepo b/build-ubunturepo index 44eee4fb3..c9774980a 100755 --- a/build-ubunturepo +++ b/build-ubunturepo @@ -260,7 +260,7 @@ __EOF__ fi # Decide whether to upload or not - if [ "$UP" != 1 ]; then + if [ -n "$UP" ] && [ "$UP" == 0 ]; then echo "No need to upload" cd $old_pwd exit 0 @@ -351,7 +351,7 @@ __EOF__ chgrp xcat $dep_tar_name chmod g+w $dep_tar_name - if [ "$UP" != 1 ];then + if [ -n "$UP" ] && [ "$UP" == 0 ];then echo "No need to upload the dep packages" cd $old_pwd exit 0