diff --git a/backup.sh b/backup.sh index 1a0725c..fbe8b71 100644 --- a/backup.sh +++ b/backup.sh @@ -2,10 +2,16 @@ # 传入的种子备份参数 if [ $1 ]; then AppName=$1 +else + echo 'AppName not null' + exit 1 fi if [ $2 ]; then torrentDir=$2 +else + echo 'torrentDir not null' + exit 2 fi # 脚本当前目录