diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2015-09-25 15:03:21 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2015-09-25 15:03:21 -0400 |
commit | dd81b9c54a7f4fffbf1e8e7ae04d09c409750c05 (patch) | |
tree | 051fa3f082579689f2ac8d67be71fc586dbb72ee | |
parent | c38a92a75bddfd91285657778a7b663d6d0c3136 (diff) |
fix golang detection to work with /bin/sh
-rw-r--r-- | .config/login.d/10_golang.sh | 5 |
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 |