Add support for removing install bit

This commit is contained in:
JeremyStar™ 2023-12-09 15:47:41 +01:00
parent e34ab01831
commit ae4b2a4b44
2 changed files with 4 additions and 1 deletions

View file

@ -51,7 +51,7 @@ git pull
This will reset all programs to their original state and remove `~/.dotfiles` completely. This will reset all programs to their original state and remove `~/.dotfiles` completely.
```bash ```bash
cd "$HOME/.dotfiles" cd "$HOME/.dotfiles"
env REMOVE_REPOSITORIES=true ./uninstall.sh env REMOVE_INSTALLBIT=true REMOVE_REPOSITORIES=true ./uninstall.sh
cd "$HOME" cd "$HOME"
rm -rf "$HOME/.dotfiles" rm -rf "$HOME/.dotfiles"
``` ```

View file

@ -12,6 +12,9 @@ function unlink() {
# repositories # repositories
[[ -n "$REMOVE_REPOSITORIES" ]] && rm -rf "jstmbash" "dracula-mc" [[ -n "$REMOVE_REPOSITORIES" ]] && rm -rf "jstmbash" "dracula-mc"
# install bit
[[ -n "$REMOVE_INSTALLBIT" ]] && rm -rf "$HOME/.config/.jstm_dotfiles"
# jobrunner # jobrunner
unlink ".local/bin/jobrunner" unlink ".local/bin/jobrunner"
unlink ".local/bin/jobrunner-runjob" unlink ".local/bin/jobrunner-runjob"