Skip to content

Commit

Permalink
更正语法
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperManito committed Oct 24, 2023
1 parent 5ef4d4e commit c62e736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ChangeMirrors.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
## Author: SuperManito
## Modified: 2023-10-20
## Modified: 2023-10-24
## License: MIT
## GitHub: https://github.com/SuperManito/LinuxMirrors
## Website: https://linuxmirrors.cn
Expand Down Expand Up @@ -787,7 +787,7 @@ function BackupOriginMirrors() {
[Yy] | [Yy][Ee][Ss]) ;;
[Nn] | [Nn][Oo])
echo ''
cp -rvf "${target_dir}/*" "$backup_dir" 2>&1
cp -rvf $target_dir/* "$backup_dir" 2>&1
BACKUPED="true"
;;
*)
Expand All @@ -798,7 +798,7 @@ function BackupOriginMirrors() {
else
[ ! -d "$backup_dir" ] && mkdir -p "$backup_dir"
echo ''
cp -rvf "${target_dir}/*" "$backup_dir" 2>&1
cp -rvf $target_dir}/* "$backup_dir" 2>&1
BACKUPED="true"
echo -e "\n$COMPLETE 已备份原有 repo 源文件"
sleep 1s
Expand Down

0 comments on commit c62e736

Please sign in to comment.