Skip to content

Commit

Permalink
fix: fix requirements check (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Mar 2, 2023
1 parent 39a235a commit 8cc47a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ steps:
image: bats/bats
commands:
- rm -rf /usr/bin/nc
- apk add bash
- bats ./wait-for.bats

trigger:
Expand Down Expand Up @@ -227,6 +226,6 @@ depends_on:

---
kind: signature
hmac: bd88ea52d53fb53375b5a4e4e905f2b7e76760ec88fe81d4a0df93319ad635e4
hmac: dcda7aed778df0aa478080900afef24612002100c54286b04d82fc22dc534e07

...
2 changes: 1 addition & 1 deletion wait-for
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cc47a9

Please sign in to comment.