From dd81b9c54a7f4fffbf1e8e7ae04d09c409750c05 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 25 Sep 2015 15:03:21 -0400 Subject: fix golang detection to work with /bin/sh --- .config/login.d/10_golang.sh | 5 +++-- 1 file 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 -- cgit v1.2.3