diff --git a/.drone.yml b/.drone.yml index ce4ec98..1bc7eb5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,7 +21,6 @@ steps: image: bats/bats commands: - rm -rf /usr/bin/nc - - apk add bash - bats ./wait-for.bats trigger: @@ -227,6 +226,6 @@ depends_on: --- kind: signature -hmac: bd88ea52d53fb53375b5a4e4e905f2b7e76760ec88fe81d4a0df93319ad635e4 +hmac: dcda7aed778df0aa478080900afef24612002100c54286b04d82fc22dc534e07 ... diff --git a/wait-for b/wait-for index ea33cff..49291e3 100755 --- a/wait-for +++ b/wait-for @@ -86,7 +86,7 @@ if [ -x "$(command -v bash)" ]; then HAS_BASH=1 fi -if [ "$HAS_NC" != 1 ] || [ "$HAS_BASH" != 1 ]; then +if [ "$HAS_NC" != 1 ] && [ "$HAS_BASH" != 1 ]; then echoerr "error: netcat or bash is required for wait-for to run" exit 1 fi