diff --git a/vars.sh.frag b/vars.sh.frag index 9e993cc91..0f66267ae 100644 --- a/vars.sh.frag +++ b/vars.sh.frag @@ -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