fix: fix requirements check (#54)

This commit is contained in:
Robert Kaussow 2023-03-02 14:04:24 +01:00 committed by GitHub
parent 39a235a9e0
commit 8cc47a9e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

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

View File

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