cd_rm
This commit is contained in:
parent
ae496a66af
commit
9838ed3a6c
1 changed files with 4 additions and 3 deletions
7
cd.sh
7
cd.sh
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue