scripts/lib: Fix a bug in the `remove` function

BodgeMaster 2024-03-24 13:28:25 +01:00
parent 248175e0e1
commit f35211689e
1 changed files with 4 additions and 4 deletions

View File

@ -59,16 +59,16 @@ fi
function remove {
local USE_FORCE=""
if [ "$1" = "-f" ]; then
USE_FORCE="-f"
USE_FORCE="f"
shift
echo "Forcefully removing $1..."
else
echo "Removing $1..."
fi;
shift
if [ -d "$1" ]; then
rm "$USE_FORCE" -rv "$1"
rm -"$USE_FORCE"rv "$1"
else
rm "$USE_FORCE" -v "$1"
rm -"$USE_FORCE"v "$1"
fi
}