mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-08-15 06:42:19 +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
|
if [ -n "$DEBCARGO" ]; then
|
||||||
true
|
true
|
||||||
elif which debcargo >/dev/null; then
|
elif type -p debcargo >/dev/null 2>&1; then
|
||||||
DEBCARGO=$(which debcargo)
|
DEBCARGO=$(type -p debcargo)
|
||||||
elif [ -f "$HOME/.cargo/bin/debcargo" ]; then
|
elif [ -f "$HOME/.cargo/bin/debcargo" ]; then
|
||||||
DEBCARGO="$HOME/.cargo/bin/debcargo"
|
DEBCARGO="$HOME/.cargo/bin/debcargo"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user