diff --git a/cd.sh b/cd.sh index e8da6a4..e2b9b3b 100644 --- a/cd.sh +++ b/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 }