备份脚本写入小问题修复
This commit is contained in:
parent
f6e615735b
commit
a9dd626cdf
@ -73,7 +73,7 @@ declare year=$(date +"%Y") #年份
|
|||||||
source "${path}/venv/bin/activate"
|
source "${path}/venv/bin/activate"
|
||||||
|
|
||||||
for item in "$web_path"/*; do
|
for item in "$web_path"/*; do
|
||||||
item_name=$(basename "\$item")
|
declare item_name=\$(basename "\$item")
|
||||||
cd "\$item" || exit
|
cd "\$item" || exit
|
||||||
tar -czf "\${item_name}_\${date_time}.tar.gz" .
|
tar -czf "\${item_name}_\${date_time}.tar.gz" .
|
||||||
bypy upload "\${item_name}_\${date_time}.tar.gz" "/\${item_name}/"
|
bypy upload "\${item_name}_\${date_time}.tar.gz" "/\${item_name}/"
|
||||||
|
Loading…
Reference in New Issue
Block a user