diff --git a/Config/Automation/backup.sh b/Config/Automation/backup.sh index 5a56717..3249dda 100644 --- a/Config/Automation/backup.sh +++ b/Config/Automation/backup.sh @@ -76,7 +76,7 @@ fi cat > "${path}/backup.sh" << EOF #!/bin/bash declare date_time=$(date +"%Y_%m_%d") # 日期格式 -declare year=$(date +"%Y") #年份 +declare year=\$(date +"%Y") #年份 source "${path}/venv/bin/activate" for item in "$web_path"/*; do