From d117982f6decf3289088f41acc16446f1602c7db Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 2 Feb 2022 09:56:16 +1300 Subject: Replace `where` with bash-compatible `hash` Bash throws a wonky on `where` while zsh was fine. Simpler to just use `hash` like this since AFAICT it will be mostly equivalent. --- environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment b/environment index e10a5c8..4952a08 100644 --- a/environment +++ b/environment @@ -1,7 +1,7 @@ #!/bin/sh bin_available() { - where "$1" | grep -vq ccache + hash "$1" 2>/dev/null } export GPG_TTY=$(tty) -- cgit v1.1