vars.sh.frag: Replace use of which with type -p
Ian Jackson
2 years ago
28 | 28 |
|
29 | 29 |
if [ -n "$DEBCARGO" ]; then
|
30 | 30 |
true
|
31 | |
elif which debcargo >/dev/null; then
|
32 | |
DEBCARGO=$(which debcargo)
|
|
31 |
elif type -p debcargo >/dev/null 2>&1; then
|
|
32 |
DEBCARGO=$(type -p debcargo)
|
33 | 33 |
elif [ -f "$HOME/.cargo/bin/debcargo" ]; then
|
34 | 34 |
DEBCARGO="$HOME/.cargo/bin/debcargo"
|
35 | 35 |
else
|