From ae4b2a4b440c69d5bf0b0e85701a3b5ebe38a94d Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 9 Dec 2023 15:47:41 +0100 Subject: [PATCH] Add support for removing install bit --- README.md | 2 +- uninstall.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 458dd7cd..ce0a2ba2 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ git pull This will reset all programs to their original state and remove `~/.dotfiles` completely. ```bash cd "$HOME/.dotfiles" -env REMOVE_REPOSITORIES=true ./uninstall.sh +env REMOVE_INSTALLBIT=true REMOVE_REPOSITORIES=true ./uninstall.sh cd "$HOME" rm -rf "$HOME/.dotfiles" ``` diff --git a/uninstall.sh b/uninstall.sh index 4a21aa30..42d090b6 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -12,6 +12,9 @@ function unlink() { # repositories [[ -n "$REMOVE_REPOSITORIES" ]] && rm -rf "jstmbash" "dracula-mc" +# install bit +[[ -n "$REMOVE_INSTALLBIT" ]] && rm -rf "$HOME/.config/.jstm_dotfiles" + # jobrunner unlink ".local/bin/jobrunner" unlink ".local/bin/jobrunner-runjob"