mirror of
https://github.com/wader/fq.git
synced 2024-11-23 09:56:07 +03:00
Merge pull request #885 from thesamesam/which-hunt
pkg/cli/test_exp.sh: use command -v
This commit is contained in:
commit
f7815d4c41
@ -4,7 +4,7 @@ set -eu
|
|||||||
FQ="$1"
|
FQ="$1"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
if which expect >/dev/null 2>&1; then
|
if command -v expect >/dev/null 2>&1; then
|
||||||
TEMPDIR=$(mktemp -d)
|
TEMPDIR=$(mktemp -d)
|
||||||
cp "$FQ" "${TEMPDIR}/fq"
|
cp "$FQ" "${TEMPDIR}/fq"
|
||||||
PATH="${TEMPDIR}:${PATH}" expect "$1" >"${TEMPDIR}/fq.log" && FAIL=0 || FAIL=1
|
PATH="${TEMPDIR}:${PATH}" expect "$1" >"${TEMPDIR}/fq.log" && FAIL=0 || FAIL=1
|
||||||
|
Loading…
Reference in New Issue
Block a user