milis/rootfs/bin/which

3 lines
62 B
Bash
Executable File

#!/bin/bash
type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}