Skip to content

Commit fe36095

Browse files
authored
Fix add gnu bins to path
This fixes adding the gnu bin utils to the path on macOS.
1 parent 35444da commit fe36095

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

contributors/devel/development.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,11 @@ You will want to include this block or something similar at the end of
162162
your `.bashrc` or shell init script:
163163

164164
```sh
165-
GNUBINS="$(find `brew --prefix`/opt -type d -follow -name gnubin -print)"
166-
165+
GNUBINS=($(find `brew --prefix`/opt -type d -follow -name gnubin -print))
167166
for bindir in ${GNUBINS[@]}
168167
do
169-
export PATH=$bindir:$PATH
168+
export PATH="$bindir:$PATH"
170169
done
171-
172-
export PATH
173170
```
174171

175172
This ensures that the GNU tools are found first in your path. Note

0 commit comments

Comments
 (0)