备份脚本日期问题

This commit is contained in:
lsy 2024-08-12 09:52:02 +08:00
parent d4abe34e38
commit 2402b0ed68

View File

@ -75,7 +75,7 @@ fi
cat > "${path}/backup.sh" << EOF
#!/bin/bash
declare date_time=$(date +"%Y_%m_%d") # 日期格式
declare date_time=\$(date +"%Y_%m_%d") # 日期格式
declare year=\$(date +"%Y") #年份
source "${path}/venv/bin/activate"