-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[spec] Fix @python support bin for macOS 14
- Loading branch information
1 parent
3238a90
commit 6a3c262
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |