mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-07 09:50:27 +08:00
更正语法
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2023-10-20
|
## Modified: 2023-10-24
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -787,7 +787,7 @@ function BackupOriginMirrors() {
|
|||||||
[Yy] | [Yy][Ee][Ss]) ;;
|
[Yy] | [Yy][Ee][Ss]) ;;
|
||||||
[Nn] | [Nn][Oo])
|
[Nn] | [Nn][Oo])
|
||||||
echo ''
|
echo ''
|
||||||
cp -rvf "${target_dir}/*" "$backup_dir" 2>&1
|
cp -rvf $target_dir/* "$backup_dir" 2>&1
|
||||||
BACKUPED="true"
|
BACKUPED="true"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -798,7 +798,7 @@ function BackupOriginMirrors() {
|
|||||||
else
|
else
|
||||||
[ ! -d "$backup_dir" ] && mkdir -p "$backup_dir"
|
[ ! -d "$backup_dir" ] && mkdir -p "$backup_dir"
|
||||||
echo ''
|
echo ''
|
||||||
cp -rvf "${target_dir}/*" "$backup_dir" 2>&1
|
cp -rvf $target_dir}/* "$backup_dir" 2>&1
|
||||||
BACKUPED="true"
|
BACKUPED="true"
|
||||||
echo -e "\n$COMPLETE 已备份原有 repo 源文件"
|
echo -e "\n$COMPLETE 已备份原有 repo 源文件"
|
||||||
sleep 1s
|
sleep 1s
|
||||||
|
|||||||
Reference in New Issue
Block a user