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 a4ab4f0 commit b16e3faCopy full SHA for b16e3fa
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-golang-add-package/run
@@ -1,10 +1,10 @@
1
#!/usr/bin/with-contenv bash
2
3
echo "**** ensuring golang is in PATH ****"
4
-if ! grep -q -E '.*/usr/local/go/bin.*' /var/run/s6/container_environment/PATH; then
+if ! grep -q '/usr/local/go/bin' /var/run/s6/container_environment/PATH; then
5
printf ':/usr/local/go/bin' >> /var/run/s6/container_environment/PATH
6
fi
7
-if ! grep -q -E '.*/config/go/bin:.*' /var/run/s6/container_environment/PATH; then
+if ! grep -q '/config/go/bin' /var/run/s6/container_environment/PATH; then
8
sed -i '1s|^|/config/go/bin:|' /var/run/s6/container_environment/PATH
9
10
0 commit comments