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 () {
|
||||
if [ -e "${1}" ] ; then
|
||||
echo "← ${1}"
|
||||
rm -r "${1}" || exit
|
||||
local path="${1}"
|
||||
if [ -e "${path}" ] ; then
|
||||
echo "← ${path}"
|
||||
rm -r "${path}" || exit
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue