Permalink
Browse files

Adjusted rm_rf

  • Loading branch information...
wayneeseguin committed Apr 5, 2011
1 parent 082acac commit 724fcfd4b0910548ebbc0c49b5a8ac04ce88e281
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/functions/cleanup
@@ -8,13 +8,14 @@ __rvm_rm_rf()
local result=1 target="${1%%+(/|.)}"
#NOTE: RVM Requires extended globbing shell feature turned on.
+ shopt -s extglob
case "${target}" in
(*(/|.)@(|/Applications|/Developer|/Guides|/Information|/Library|/Network|/System|/User|/Users|/Volumes|/backups|/bdsm|/bin|/boot|/cores|/data|/dev|/etc|/home|/lib|/lib64|/mach_kernel|/media|/misc|/mnt|/net|/opt|/private|/proc|/root|/sbin|/selinux|/srv|/sys|/tmp|/usr|/var))
false
;;
- *)
+ (*)
if [[ -n "${target}" ]] ; then
if [[ -d "${target}" ]] ; then # Directory

0 comments on commit 724fcfd

Please sign in to comment.