将备份脚本中的相对路径换为直接路径

This commit is contained in:
lsy 2024-07-26 19:42:07 +08:00
parent bb1db6d572
commit f6e615735b

View File

@ -52,7 +52,7 @@ fi
if [[ ! $aliyun_pick =~ [Nn] ]];then if [[ ! $aliyun_pick =~ [Nn] ]];then
if [[ ! -d aliyunpan ]];then if [[ ! -d "${path}/aliyunpan" ]];then
wget -P "${path}" https://github.com/tickstep/aliyunpan/releases/download/v0.3.2/aliyunpan-v0.3.2-linux-amd64.zip -O "${path}/aliyunpan.zip" wget -P "${path}" https://github.com/tickstep/aliyunpan/releases/download/v0.3.2/aliyunpan-v0.3.2-linux-amd64.zip -O "${path}/aliyunpan.zip"
unzip aliyunpan.zip unzip aliyunpan.zip
unzip "${path}/aliyunpan.zip" -d "${path}" unzip "${path}/aliyunpan.zip" -d "${path}"