mirror of
https://github.com/thegeeklab/wait-for.git
synced 2024-11-23 12:50:40 +00:00
fix: fix requirements check (#54)
This commit is contained in:
parent
39a235a9e0
commit
8cc47a9e2a
@ -21,7 +21,6 @@ steps:
|
|||||||
image: bats/bats
|
image: bats/bats
|
||||||
commands:
|
commands:
|
||||||
- rm -rf /usr/bin/nc
|
- rm -rf /usr/bin/nc
|
||||||
- apk add bash
|
|
||||||
- bats ./wait-for.bats
|
- bats ./wait-for.bats
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
@ -227,6 +226,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: bd88ea52d53fb53375b5a4e4e905f2b7e76760ec88fe81d4a0df93319ad635e4
|
hmac: dcda7aed778df0aa478080900afef24612002100c54286b04d82fc22dc534e07
|
||||||
|
|
||||||
...
|
...
|
||||||
|
2
wait-for
2
wait-for
@ -86,7 +86,7 @@ if [ -x "$(command -v bash)" ]; then
|
|||||||
HAS_BASH=1
|
HAS_BASH=1
|
||||||
fi
|
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"
|
echoerr "error: netcat or bash is required for wait-for to run"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user