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 c97eac0 commit 6d1525fCopy full SHA for 6d1525f
root/etc/cont-init.d/98-golang
@@ -4,7 +4,8 @@ echo "ensuring golang is in PATH"
4
if grep -q -E '^(export )?PATH=' /etc/services.d/code-server/run; then
5
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
- elif ! grep -q -E '^(export )?PATH=.*/config/go/bin:.*' /etc/services.d/code-server/run; then
+ fi
8
+ if ! grep -q -E '^(export )?PATH=.*/config/go/bin:.*' /etc/services.d/code-server/run; then
9
sed -i 's/PATH=/PATH=\/config\/go\/bin:/g' /etc/services.d/code-server/run
10
fi
11
else
0 commit comments