Permalink
Browse files

speed up removing files, update #2634

  • Loading branch information...
1 parent c61acdc commit cd3129870f539b31cee9733ce64520b3453e6729 @mpapis mpapis committed Feb 25, 2014
Showing with 2 additions and 7 deletions.
  1. +2 −7 scripts/functions/installer
@@ -378,7 +378,7 @@ cleanse_old_entities()
#
for script in utility array
do
- if [[ -f "$rvm_path/scripts/${script}" ]]
+ if test -f "$rvm_path/scripts/${script}"
then \rm -f "$rvm_path/scripts/${script}"
fi
done
@@ -1417,12 +1417,7 @@ cleanup_tmp_files()
(( ${#files[@]} > 0 ))
then
rvm_out " Cleanup any .swp files."
- for file in "${files[@]}"
- do
- if [[ -f "$file" ]]
- then \rm -f "$file"
- fi
- done
+ \rm -f "${files[@]}"
fi
}

0 comments on commit cd31298

Please sign in to comment.