From c62e736b6c99cbec82bba5af3b2d040b79edd6cf Mon Sep 17 00:00:00 2001 From: SuperManito <68613938+SuperManito@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeMirrors.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index 05c934ef..1b94f204 100755 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -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 @@ -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" ;; *) @@ -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