From a9dd626cdfb10ae4f2e0f9103b8f65f273449cc0 Mon Sep 17 00:00:00 2001 From: lsy Date: Fri, 26 Jul 2024 21:06:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD=E8=84=9A=E6=9C=AC=E5=86=99?= =?UTF-8?q?=E5=85=A5=E5=B0=8F=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Automation/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config/Automation/backup.sh b/Config/Automation/backup.sh index ccc018c..20a10e6 100644 --- a/Config/Automation/backup.sh +++ b/Config/Automation/backup.sh @@ -73,7 +73,7 @@ declare year=$(date +"%Y") #年份 source "${path}/venv/bin/activate" for item in "$web_path"/*; do - item_name=$(basename "\$item") + declare item_name=\$(basename "\$item") cd "\$item" || exit tar -czf "\${item_name}_\${date_time}.tar.gz" . bypy upload "\${item_name}_\${date_time}.tar.gz" "/\${item_name}/"