Skip to content

Commit cda9e9b

Browse files
committed
fix(docs): use brew --prefix for Brew path on macos in docs gen script
The currently hardcoded path is different in newer versions, so switched to use `brew --prefix` instead to provide the homebrew path.
1 parent e2036eb commit cda9e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/generate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ THEMEPATH=$(dirname $0)/theme
3737
THEMEPATH=$(realpath "$THEMEPATH")
3838

3939
if [[ $(uname) == "Darwin" ]]; then
40-
TEMPARGS=$(/Users/$(id -un)/homebrew/opt/gnu-getopt/bin/getopt -o o:p:b:t: --long out:,pypath:,sphinx-build:,themepath: -- "$@")
40+
TEMPARGS=$($(brew --prefix)/opt/gnu-getopt/bin/getopt -o o:p:b:t: --long out:,pypath:,sphinx-build:,themepath: -- "$@")
4141
else
4242
TEMPARGS=$(getopt -o o:p:b:t: --long out:,pypath:,sphinx-build:,themepath: -- "$@")
4343
getopt = getopt

0 commit comments

Comments
 (0)