javascript: support using nodejs as jsshell interpreter.
[wvtest.git] / runnable
blobecd7134c8595fbc7e81296b7831ccd9aa79e277f
1 #!/bin/sh
2 # Returns 0 (success) if the given program is runnable.
4 # This is better than using [ -x /usr/bin/program ] because it avoids
5 # the need to hardcode the program's path; it searches $PATH instead.
7 if [ $# != 1 ]; then
8 echo "usage: $0 <programname>" >&2
9 exit 1
11 type "$1" >/dev/null 2>&1