From 11c976d2c04336123827c9a242138db5eceffc3e Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Thu, 6 Aug 2020 23:03:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E6=A3=80=E6=9F=A5=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E7=A9=BA=E5=8F=82=E6=95=B0=E4=BD=BF=E7=94=A8?= =?UTF-8?q?backup.sh=E6=97=B6=EF=BC=8C=E9=80=A0=E6=88=90=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 # 脚本当前目录