1 2 3 4 5 6 7 8 9
#!/bin/sh if type which; then echo "use which" fi if ! type which; then echo "well, idk" fi