备份脚本检查名称写错了,将检测到退出删除

This commit is contained in:
lsy 2024-07-26 19:17:08 +08:00
parent 4fe0954131
commit 49199ef77f
2 changed files with 0 additions and 2 deletions

View File

@ -4,7 +4,6 @@ declare cron=$2
if [[ -f "${path}/update.sh" ]];then
echo "该路径文件已经存在"
exit
fi
case "$version" in

View File

@ -60,7 +60,6 @@ case $pick in
fi
if [[ -f "${path}/up-docker_compose.sh" ]];then
echo "该路径文件已经存在"
exit
fi
declare web_path
read -p "请输入数据目录,默认 /var/www " web_path