We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b4ee4c commit e1b50e6Copy full SHA for e1b50e6
bin/ruby-build
@@ -44,6 +44,7 @@ install_package() {
44
cd "$package_name"
45
build_package "$package_name" $*
46
after_install_package "$package_name"
47
+ fix_directory_permissions
48
cd "$cwd"
49
50
echo "Installed ${package_name} to ${PREFIX_PATH}" >&2
@@ -114,6 +115,11 @@ after_install_package() {
114
115
local stub=1
116
}
117
118
+fix_directory_permissions() {
119
+ # Ensure installed directories are not world-writable to avoid Bundler warnings
120
+ find "$PREFIX_PATH" -type d -exec chmod go-w {} \;
121
+}
122
+
123
use_gcc42_on_lion() {
124
if [ "$(uname -s)" = "Darwin" ]; then
125
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7 || true)" -eq 1 ]; then
0 commit comments