vars.sh.frag: Replace use of which with type -p

This commit is contained in:
Ian Jackson 2021-08-29 21:58:09 +01:00
parent 87c0930c70
commit f498b1c480

View File

@ -29,8 +29,8 @@ fi
if [ -n "$DEBCARGO" ]; then
true
elif which debcargo >/dev/null; then
DEBCARGO=$(which debcargo)
elif type -p debcargo >/dev/null 2>&1; then
DEBCARGO=$(type -p debcargo)
elif [ -f "$HOME/.cargo/bin/debcargo" ]; then
DEBCARGO="$HOME/.cargo/bin/debcargo"
else