Skip to content

Commit

Permalink
[spec] Fix @python support bin for macOS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
sideeffect42 committed Mar 4, 2024
1 parent 3238a90 commit 79f7b2e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/support/bin/@python
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#!/bin/sh -e
. "$SHELLSPEC_SUPPORT_BIN"
if ! command -v python >/dev/null 2>&1
then
if command -v python3 >/dev/null 2>&1
then
invoke python3 "$@"
elif command -v python2 >/dev/null 2>&1
then
invoke python2 "$@"
fi
fi
invoke python "$@"

0 comments on commit 79f7b2e

Please sign in to comment.