Skip to content

Commit a670d5f

Browse files
daveisferaWyattBlue
authored andcommitted
Change check for zsh instead of macOS
1 parent 1a04fab commit a670d5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/activate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [[ "$0" == "${BASH_SOURCE[0]}" ]]; then
66
exit 1
77
fi
88

9-
if [[ "$(uname)" == "Darwin" ]]; then
9+
if [[ -n "$ZSH_VERSION" ]]; then
1010
export PYAV_ROOT="$(realpath -- "$(dirname -- "$(readlink -f -- "$0")")/..")"
1111
else
1212
export PYAV_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.."; pwd)"

0 commit comments

Comments
 (0)