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.
2 parents a12d90e + 4e71574 commit d0e6055Copy full SHA for d0e6055
root/etc/cont-init.d/98-golang
@@ -1,8 +1,8 @@
1
#!/usr/bin/with-contenv bash
2
3
echo "ensuring golang is in PATH"
4
-if grep -q '^PATH=' /etc/services.d/code-server/run; then
5
- if ! grep -q '^PATH=.*/usr/local/go/bin.*' /etc/services.d/code-server/run; then
+if grep -q -E '^(export )?PATH=' /etc/services.d/code-server/run; then
+ if ! grep -q -E '^(export )?PATH=.*/usr/local/go/bin.*' /etc/services.d/code-server/run; then
6
sed -i '/PATH/ s/$/:\/usr\/local\/go\/bin/' /etc/services.d/code-server/run
7
fi
8
else
0 commit comments