We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07bda6 commit 5f4a4e5Copy full SHA for 5f4a4e5
update-golang.sh
@@ -105,10 +105,18 @@ fi
105
[ -n "$DESTINATION" ] && destination=$DESTINATION
106
[ -n "$OS" ] && os=$OS
107
[ -n "$ARCH" ] && arch=$ARCH
108
-[ -n "$PROFILED" ] && profiled=$PROFILED
109
cache=$destination
110
[ -n "$CACHE" ] && cache=$CACHE
111
+case "$os" in
112
+ darwin)
113
+ # darwin does not support /etc/profile.d, change default to /etc/profile
114
+ profiled=/etc/profile
115
+ ;;
116
+esac
117
+
118
+[ -n "$PROFILED" ] && profiled=$PROFILED
119
120
show_vars() {
121
echo user: "$(id)"
122
update-golang.sh.sha256
@@ -1 +1 @@
1
-a758e8816a001897ab6f761c7eda99af8226569e47777d5c6e14042902e64904 update-golang.sh
+77baf9921d5061391548ea0df442caf3527bdfe681793a3e1b0207fee476ff33 update-golang.sh
0 commit comments