mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-04-28 13:24:24 +00:00
vars.sh.frag: Replace use of which with type -p
This commit is contained in:
parent
87c0930c70
commit
f498b1c480
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user