-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
type
instead of command -v
in scripts
This commit will update `bootstrap.sh` and `linuxbrew.sh` to detect executable programs with `type` instead of with `command -v`. The `command` executable does not exist on Linux GitHub Actions runners. This is strange because `command` is included in the POSIX spec. https://pubs.opengroup.org/onlinepubs/9799919799/utilities/command.html To avoid errors, the `type` executable will be used instead. `type -P` can output the path to the executable, but the `-P` option is specific to Bash and is not a POSIX default. For portability, `type` will be used without options where possible. https://pubs.opengroup.org/onlinepubs/9799919799/utilities/type.html
- Loading branch information
1 parent
227df23
commit 6dcc778
Showing
7 changed files
with
29 additions
and
35 deletions.
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
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
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
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