Skip to content

Commit

Permalink
Merge pull request #885 from thesamesam/which-hunt
Browse files Browse the repository at this point in the history
pkg/cli/test_exp.sh: use command -v
  • Loading branch information
wader authored Feb 27, 2024
2 parents 77b2c02 + 08df7f4 commit f7815d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/test_exp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu
FQ="$1"
shift

if which expect >/dev/null 2>&1; then
if command -v expect >/dev/null 2>&1; then
TEMPDIR=$(mktemp -d)
cp "$FQ" "${TEMPDIR}/fq"
PATH="${TEMPDIR}:${PATH}" expect "$1" >"${TEMPDIR}/fq.log" && FAIL=0 || FAIL=1
Expand Down

0 comments on commit f7815d4

Please sign in to comment.