Codebase list rust-libslirp / 38e27c2
Some other scripts: Replace use of which with type -p This stanza is clone-and-hacked from vars.sh.frag :-( but I can't easily reuse it because that does quite some Other Stuff. Ian Jackson 2 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2626
2727 if [ -n "$DEBCARGO" ]; then
2828 true
29 elif which debcargo >/dev/null; then
30 DEBCARGO=$(which debcargo)
29 elif type -p debcargo >/dev/null 2>&1; then
30 DEBCARGO=$(type -p debcargo)
3131 elif [ -f "$HOME/.cargo/bin/debcargo" ]; then
3232 DEBCARGO="$HOME/.cargo/bin/debcargo"
3333 else
66
77 if [ -n "$DEBCARGO" ]; then
88 true
9 elif which debcargo >/dev/null; then
10 DEBCARGO=$(which debcargo)
9 elif type -p debcargo >/dev/null 2>&1; then
10 DEBCARGO=$(type -p debcargo)
1111 elif [ -f "$HOME/.cargo/bin/debcargo" ]; then
1212 DEBCARGO="$HOME/.cargo/bin/debcargo"
1313 else