Skip to content
Browse files

Merge branch 'master' of github.com:wayneeseguin/rvm

  • Loading branch information...
2 parents d24c6d3 + cc13ef7 commit 93b2fd2b3a2e110aaa71b2df5ac0e70ede43d613 @mpapis mpapis committed
Showing with 8 additions and 8 deletions.
  1. +8 −8 scripts/functions/installer
View
16 scripts/functions/installer
@@ -277,7 +277,7 @@ install_rvm_hooks()
cp -f "$source_path/$entry" "$rvm_path/$entry"
if (( hook_x_flag == 0 ))
then
- [[ -x "$rvm_path/$entry" ]] || chmod +x "$rvm_path/$entry"
+ [[ -x "$rvm_path/$entry" ]] || chmod a+rx "$rvm_path/$entry"
fi
elif [[ -d "$source_path/$entry" ]]
then
@@ -358,7 +358,7 @@ ensure_scripts_are_executable()
if
[[ -s "${rvm_scripts_path}/${file}" && ! -x "${rvm_scripts_path}/${file}" ]]
then
- chmod +x "${rvm_scripts_path}/${file}"
+ chmod a+rx "${rvm_scripts_path}/${file}"
fi
done
}
@@ -378,7 +378,7 @@ install_binscripts()
cp -f "${source_path}/binscripts/${file}" "${rvm_bin_path}/${file}"
- [[ -x "${rvm_bin_path}/${file}" ]] || chmod +x "${rvm_bin_path}/${file}"
+ [[ -x "${rvm_bin_path}/${file}" ]] || chmod a+rx "${rvm_bin_path}/${file}"
# try to clean old installer files left in usual places added to PATH
for system_bin in ~/bin /usr/local/bin
@@ -608,7 +608,7 @@ correct_binary_permissions()
do
if [[ -s "${rvm_bin_path}/${file}" && ! -x "${rvm_bin_path}/${file}" ]]
then
- chmod +x "${rvm_bin_path}/${file}"
+ chmod a+rx "${rvm_bin_path}/${file}"
fi
done
}
@@ -684,7 +684,7 @@ display_notes()
then name="$(git config user.name 2>/dev/null || echo ${SUDO_USER:-${USERNAME}} )"
fi
- [[ -x ./scripts/notes ]] || chmod +x ./scripts/notes
+ [[ -x ./scripts/notes ]] || chmod a+rx ./scripts/notes
if (( upgrade_flag == 0 ))
then
./scripts/notes initial
@@ -721,7 +721,7 @@ setup_rvm_path_permissions()
{
chown -R root:"$rvm_group_name" "$rvm_path"
- chmod -R g+w "$rvm_path"
+ chmod -R u+rwX,g+rwX,o+rX "$rvm_path"
if [[ -d "$rvm_path" ]]
then
@@ -904,7 +904,7 @@ fi
if (( executable )) && [[ ! -x "${etc_profile_file}" ]]
then
- chmod +x "${etc_profile_file}"
+ chmod a+rx "${etc_profile_file}"
fi
if (( add_to_profile_flag )) &&
@@ -1136,7 +1136,7 @@ record_installation_time()
if (( UID == 0 )) && system_check
then
# fix the rights explicitly as this is the last action
- chmod g+w "$rvm_path/installed.at"
+ chmod u+rwX,g+rwX,o+rX "$rvm_path/installed.at"
fi
return 0
}

0 comments on commit 93b2fd2

Please sign in to comment.
Something went wrong with that request. Please try again.