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 () { cd_rm () {
if [ -e "${1}" ] ; then local path="${1}"
echo "${1}" if [ -e "${path}" ] ; then
rm -r "${1}" || exit echo "${path}"
rm -r "${path}" || exit
fi fi
} }