1
1
mirror of https://github.com/wader/fq.git synced 2024-10-26 11:49:54 +03:00

Merge pull request #885 from thesamesam/which-hunt

pkg/cli/test_exp.sh: use command -v
This commit is contained in:
Mattias Wadman 2024-02-28 00:16:27 +01:00 committed by GitHub
commit f7815d4c41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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