NO DELETING THE ENTIRE FILESYSTEM

(thanks shellcheck for not letting me delete my entire system :3)
This commit is contained in:
JeremyStar™ 2024-06-02 21:11:04 +02:00
parent 7563605feb
commit e89f617299
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -5,7 +5,7 @@
function unlink() { function unlink() {
if [ -a "${HOME}/${1}" ]; then if [ -a "${HOME}/${1}" ]; then
echo ":: Unlinking ${1}" echo ":: Unlinking ${1}"
rm -rf "${HOME}/${1}" rm -rf "${HOME:?}/${1:?}"
fi fi
} }