From 70e5249c164c3e49e8f002453c6ed740a7731836 Mon Sep 17 00:00:00 2001 From: HawkinC Macbook Date: Thu, 17 Apr 2025 19:21:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20feat:=20=E5=9C=A8git=E5=85=8B?= =?UTF-8?q?=E9=9A=86=E5=A4=B1=E8=B4=A5=E6=97=B6=E6=81=A2=E5=A4=8D=E5=8E=9F?= =?UTF-8?q?=E6=9C=89=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config-os-and-apps.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config-os-and-apps.sh b/config-os-and-apps.sh index 542b574..2c9275b 100644 --- a/config-os-and-apps.sh +++ b/config-os-and-apps.sh @@ -36,6 +36,10 @@ test -f "$HOME"/.config/.bin/.Runtime/SELF_MARK_AS_INSTALLED_FROM_SCRIPT && { git clone --depth 1 --branch "$BRANCH" --single-branch https://gitea.yever.top/Hawkin/.config.git "$HOME"/.config test $? -ne 0 && { echo "git clone failed, please check your network." + # 恢复原有配置 + [ -d "$HOME/.config" ] && rm -rf "$HOME/.config" + mv /tmp/.config "$HOME/.config" + echo "restored the old config to $HOME/.config" exit 1 }