Skip to content

Commit 62f1b61

Browse files
committed
Correcting source for bash again
1 parent 2884bb6 commit 62f1b61

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ build the latest development version, otherwise it will keep using the previousl
4444
currently active version at `$HOME/.gvm/go` which is then
4545
added to the beginning of the PATH.
4646

47-
## Supported OSes
47+
## Supported OSes and Architectures
4848

49-
- Linux
50-
- Mac OS X (ARM & Intel)
49+
- Linux (ARM64 / AMD64)
50+
- Mac OS X (ARM64 / AMD64)
5151
- FreeBSD

gvm

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,17 @@ then
229229
exec zsh
230230
else
231231
printf "%s" "$path" >> "$HOME/.bashrc"
232-
source "$HOME"/.bashrc
232+
source ~/.bashrc
233233
fi
234234
fi
235235

236-
pathgo=$(which go)
237-
if [[ "$pathgo" != "$symln/bin/go" ]]
236+
if which go
238237
then
239-
printf "GVM is shadowed by %s in your PATH. Please update your PATH to use %s first\n" \
240-
"$pathgo" \
241-
"$symln"
238+
pathgo=$(which go)
239+
if [[ "$pathgo" != "$symln/bin/go" ]]
240+
then
241+
printf "GVM is shadowed by %s in your PATH. Please update your PATH to use %s first\n" \
242+
"$pathgo" \
243+
"$symln"
244+
fi
242245
fi

0 commit comments

Comments
 (0)