diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-21 23:15:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-21 23:15:24 +1200 |
commit | b6e6a800e89795fddf75cf5f115f5cc2ae115f16 (patch) | |
tree | fe17a2fd66146c158258e0bd508aaece57fc24b0 /sh/profile.d/go.sh | |
parent | Quote a bash->sh variable (diff) | |
download | dotfiles-b6e6a800e89795fddf75cf5f115f5cc2ae115f16.tar.gz dotfiles-b6e6a800e89795fddf75cf5f115f5cc2ae115f16.zip |
Style tweaks to profile.d subscripts
Diffstat (limited to 'sh/profile.d/go.sh')
-rw-r--r-- | sh/profile.d/go.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sh/profile.d/go.sh b/sh/profile.d/go.sh index 86bf9994..35a4a803 100644 --- a/sh/profile.d/go.sh +++ b/sh/profile.d/go.sh @@ -3,6 +3,4 @@ GOPATH=$HOME/.local/gocode export GOPATH # Prepend GOPATH to PATH for the executables if it exists -if [ -d "$GOPATH"/bin ] ; then - PATH=$GOPATH/bin:$PATH -fi +[ -d "$GOPATH"/bin ] && PATH=$GOPATH/bin:$PATH |