diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-07-17 11:31:42 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-08-14 11:59:40 +0200 |
commit | 1fcb0b1c34c9606f631ea0aaa162ba4b1de2cb8d (patch) | |
tree | cec0d89683b0b4379c276b22e789ce8ea7db305c /.local | |
parent | 48508c1d2e18b2bc2e6d75697b46189b0bafc98d (diff) |
Rely on command instead of which
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/firefox | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/firefox b/.local/bin/firefox index 22d7a79..4c0910b 100755 --- a/.local/bin/firefox +++ b/.local/bin/firefox @@ -36,7 +36,7 @@ main() require_exe() { - if ! which "$1" 2>&1 > /dev/null + if ! command -v "$1" > /dev/null 2>&1 then printf "Missing required executable %s\n" "$1" exit 3 |