From 5a693bb5c9fd11c640c090e2098001b5c5bb5c25 Mon Sep 17 00:00:00 2001 From: Andreas Koschinsky <66019681+ls-andreas-koschinsky@users.noreply.github.com> Date: Fri, 16 Dec 2022 12:19:57 +0100 Subject: [PATCH] Old `which` on circleci, fallback to `command` (#48) --- ls_pre_commit_hooks/poetry-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ls_pre_commit_hooks/poetry-run.sh b/ls_pre_commit_hooks/poetry-run.sh index 41ced81..e6644b0 100755 --- a/ls_pre_commit_hooks/poetry-run.sh +++ b/ls_pre_commit_hooks/poetry-run.sh @@ -1,6 +1,6 @@ #!/bin/bash -e -if ! which -s poetry; then +if ! [ -x "$(command -v poetry)" ]; then echo 'poetry command not found' echo 'See https://python-poetry.org/docs/#installation for installation instructions.' exit 1