Skip to content

Commit

Permalink
feat: extend PATH variable if executing on macOS (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
McFrappe authored May 25, 2021
1 parent afbb48f commit fde8640
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pywalfox/bin/main.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/usr/bin/env bash

python -m pywalfox start || python3 -m pywalfox start || python2.7 -m pywalfox start
# Checks OS Version Number
macOS=$(sw_vers -productVersion)
if [[ ${#macOS} > 0 ]]; then
PATH="$PATH:/usr/local/bin"
pywalfox start
fi

python -m pywalfox start || python3 -m pywalfox start || python2.7 -m pywalfox start || python3.9 -m pywalfox start

0 comments on commit fde8640

Please sign in to comment.