From 366485ce630d46b726f97b6e1d6a42b750fb52cb Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Thu, 19 Jul 2018 15:51:30 +1000 Subject: [PATCH] * runtest: Use POSIX 'command', not 'type', to look for the Expect binary. Silences Shellcheck warning SC2039 ("In POSIX sh, 'type' is undefined"). --- ChangeLog | 6 ++++++ runtest | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6061de7..2eb6d78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-07-19 Ben Elliston + + * runtest: Use POSIX 'command', not 'type', to look for the Expect + binary. Silences Shellcheck warning SC2039 ("In POSIX sh, 'type' + is undefined"). + 2018-07-19 Ben Elliston * config.guess: Update to latest version. diff --git a/runtest b/runtest index c44fc27..ee6880c 100755 --- a/runtest +++ b/runtest @@ -139,7 +139,7 @@ if [ -z "$runpath" ] ; then exit 1 fi -if ! type "$expectbin" > /dev/null 2> /dev/null ; then +if ! command -v "$expectbin" > /dev/null ; then echo "ERROR: unable to find expect in the PATH" exit 1 fi