This commit is contained in:
Marc Beninca 2024-05-23 15:49:30 +02:00
parent ae496a66af
commit 9838ed3a6c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

7
cd.sh
View file

@ -612,9 +612,10 @@ local file="${1}"
}
cd_rm () {
if [ -e "${1}" ] ; then
echo "${1}"
rm -r "${1}" || exit
local path="${1}"
if [ -e "${path}" ] ; then
echo "${path}"
rm -r "${path}" || exit
fi
}