mirror of
https://github.com/thegeeklab/wait-for.git
synced 2024-11-22 12:20:39 +00:00
allow variable overwrite
This commit is contained in:
parent
99e603ed73
commit
5c19db4c9f
6
wait-for
6
wait-for
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
WAITFOR_TIMEOUT=15
|
WAITFOR_TIMEOUT=${WAITFOR_TIMEOUT:-15}
|
||||||
WAITFOR_QUIET=0
|
WAITFOR_QUIET=${WAITFOR_QUIET:-0}
|
||||||
|
|
||||||
echoerr() {
|
echoerr() {
|
||||||
if [ "$WAITFOR_QUIET" -ne 1 ]; then printf "%s\n" "$*" 1>&2; fi
|
if [ "$WAITFOR_QUIET" -ne 1 ]; then printf "%s\n" "$*" 1>&2; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user