From 7a2977a9e0fcb21efe3be79194916d00b678854f Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sat, 30 Jul 2022 13:23:42 +0800 Subject: [PATCH] uninstall will rm update.sh --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index c8c682f..fdde7cb 100755 --- a/install.sh +++ b/install.sh @@ -217,6 +217,11 @@ install_update(){ ${dotfile_path}/update.sh } +uninstall_update(){ + fmt_note "removing update.sh ..." + rm "${dotfile_path}/update.sh" +} + install(){ install_update install_crontab @@ -234,6 +239,7 @@ install(){ uninstall(){ ask_for_yN "do you really want to uninstall?" if [[ $? == 1 ]]; then + uninstall_update uninstall_crontab delete_if_exist "${HOME}/.zshrc" "source ${dotfile_home_path}/.zshrc2" delete_if_exist "${HOME}/.tmux.conf" "source-file ${dotfile_home_path}/.tmux.conf2"