32 lines
634 B
Bash
32 lines
634 B
Bash
|
#!/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"
|
||
|
|
||
|
# makepkg
|
||
|
unlink "etc/makepkg.conf"
|
||
|
|
||
|
# 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"
|