[DO NOT UPDATE] Update unlink() method

This commit is contained in:
JeremyStar™ 2024-06-02 21:48:17 +02:00
parent e32da5ab07
commit d2cd0e348f
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

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