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