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 }