备份脚本日期问题
This commit is contained in:
parent
d4abe34e38
commit
2402b0ed68
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user