summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/login.d/10_golang.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/login.d/10_golang.sh b/.config/login.d/10_golang.sh
index c3ae013..a9899a8 100644
--- a/.config/login.d/10_golang.sh
+++ b/.config/login.d/10_golang.sh
@@ -1,6 +1,7 @@
-if [[ -z $GOROOT ]]; then
+#!/hint/sh
+if [ -z "$GOROOT" ]; then
export GOROOT="/homes/shumakl/.prefix.$(uname -m)/go"
- if [[ -d $GOROOT ]]; then
+ if [ -d "$GOROOT" ]; then
PATH="$PATH:$GOROOT/bin"
else
unset GOROOT