diff --git a/package/common/download.sh b/package/common/download.sh index 015c815294db5e838fc5a5894da0a172deec9240..2f3cef126dfb3153850a633cd70cb2fb7e06a06c 100755 --- a/package/common/download.sh +++ b/package/common/download.sh @@ -38,7 +38,7 @@ fi if [ ! -e $exist_path ];then if [ "$type_" == "wget" ];then echo -e "\033[0;32m[Info]\033[0m:Using commands: wget $url -O $exist_path --no-check-certificate" - wget $url -O $exist_path --no-check-certificate + wget $url -O $exist_path --no-check-certificate || rm -rf $exist_path elif [ "$type_" == "git" ];then echo -e "\033[0;32m[Info]\033[0m:Using commands: git clone $url $exist_path" git clone $url $exist_path