syspunktdateien/uninstall.sh

44 lines
874 B
Bash
Raw Normal View History

2024-03-15 01:32:32 +01:00
#!/bin/bash
# jeremystartm's sysdotfiles "installer"
# useful function
function unlink() {
if [ -a "/${1}" ]; then
echo ":: Unlinking ${1}"
rm -rf "/${1}"
fi
}
# repositories
[[ -n "$REMOVE_REPOSITORIES" ]] && rm -rf "jstmbash"
# install bit
[[ -n "$REMOVE_INSTALLBIT" ]] && rm -rf "/etc/.jstm_dotfiles"
# bash configuration
unlink "etc/jstmbash"
unlink "etc/jstmbash.env"
unlink "etc/bash.bashrc"
2024-03-15 01:57:43 +01:00
# locales & stuff
unlink "etc/locale.gen"
unlink "etc/locale.conf"
unlink "etc/vconsole.conf"
# arch linux related
unlink "etc/pacman.conf"
unlink "etc/pacman.d"
unlink "etc/paru.conf"
2024-03-15 01:32:32 +01:00
unlink "etc/makepkg.conf"
2024-03-15 01:57:43 +01:00
unlink "etc/mkinitcpio.conf"
# programs
unlink "etc/sudo.conf"
2024-03-15 01:32:32 +01:00
# punktdateien scripts
unlink "usr/local/bin/sysdotfiles-updatechecker"
unlink "usr/local/bin/sysdotfiles-updater"
# write install file
echo "pls don't remove" > "/etc/.jstm_sysdotfiles"