scripts/rvm-install in rvm-1.0.14 vs scripts/rvm-install in rvm-1.0.15
- old
+ new
@@ -1,9 +1,8 @@
#!/usr/bin/env bash
set -o errtrace
-set -o errexit
export PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'
if [[ -z "$rvm_selfcontained" ]]; then
if [[ "root" = "$(whoami)" \
@@ -168,10 +167,13 @@
* If you encounter any issues with a ruby 'X' your best bet is to:
rvm remove X ; rvm install X
* If you wish to have the 'pretty colors' again, set in ~/.rvmrc:
export rvm_pretty_print_flag=1
+
+ * If you see the following error message: Unknown alias name: 'default'
+ re-set your default ruby, this is due to a change in how default works.
"
}
set -o noclobber
set -o nounset
@@ -340,14 +342,14 @@
rm -f "$rvm_bin_path/$file"
cp -f "$source_path/binscripts/$file" "${rvm_bin_path:-"$rvm_path/bin"}/"
+ chmod +x "${rvm_bin_path:-"$rvm_path/bin"}/$file"
+
done
-chmod +x "${rvm_bin_path:-"$rvm_path/bin"}"/* # TODO: this is quite suboptimal.
-
#
# RC Files
#
if [[ ${rvm_auto_flag:-0} -eq 1 ]] ; then
@@ -562,10 +564,10 @@
fi
done
-printf "\n Copying manpages into place."
+printf "\n Copying manpages into place.\n"
files=($(builtin cd "$install_source_path/man" ; \
find . -maxdepth 1 -mindepth 1 -type f -print))
for file in "${files[@]//.\/}" ; do