Codebase list rust-bzip2 / f498b1c
vars.sh.frag: Replace use of which with type -p Ian Jackson 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2828
2929 if [ -n "$DEBCARGO" ]; then
3030 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)
3333 elif [ -f "$HOME/.cargo/bin/debcargo" ]; then
3434 DEBCARGO="$HOME/.cargo/bin/debcargo"
3535 else