/which/command -v/

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2012-06-25 20:19:10 +02:00
commit d13a201cd0
8 changed files with 9 additions and 9 deletions

View file

@ -20,7 +20,7 @@
#
set +e
executable=$(which runlevel 2>/dev/null)
executable=$(command -v runlevel)
if [ -x "$executable" ]; then
"$executable" | awk '{ print $2 }'
fi