修复备份脚本""问题

This commit is contained in:
lsy 2024-09-22 23:40:44 +08:00
parent f109a84744
commit 743aff6bb3

View File

@ -87,8 +87,8 @@ cat > "${path}/backup.sh" << EOF
#!/bin/bash #!/bin/bash
declare date_time=\$(date +"%Y_%m_%d") # 日期格式 declare date_time=\$(date +"%Y_%m_%d") # 日期格式
declare year=\$(date +"%Y") #年份 declare year=\$(date +"%Y") #年份
declare ignore=$ignore declare ignore="$ignore"
source \"${path}/venv/bin/activate\" source "${path}/venv/bin/activate"
for item in "$web_path"/*; do for item in "$web_path"/*; do
declare item_name=\$(basename "\$item") declare item_name=\$(basename "\$item")