Skip to content

Commit 0c3daa2

Browse files
committed
Ignore lint for wait for it
1 parent 9305f7c commit 0c3daa2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.docker/wait-for-it.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env bash
2+
# shellcheck disable=all
23
# Use this script to test if a given TCP host/port are available
34
# https://github.com/vishnubob/wait-for-it
45

6+
# set -euo pipefail
7+
58
WAITFORIT_cmdname=${0##*/}
69

710
echoerr() { if [[ $WAITFORIT_QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }
@@ -63,9 +66,9 @@ wait_for_wrapper()
6366
wait $WAITFORIT_PID
6467
WAITFORIT_RESULT=$?
6568
if [[ $WAITFORIT_RESULT -ne 0 ]]; then
66-
echoerr "$WAITFORIT_cmdname: timeout occurred after waiting $WAITFORIT_TIMEOUT seconds for $WAITFORIT_HOST:$WAITFORIT_PORT"
69+
echoerr "$WAITFORIT_cmdname: timeout occurred after waiting ${WAITFORIT_TIMEOUT} seconds for $WAITFORIT_HOST:$WAITFORIT_PORT"
6770
fi
68-
return $WAITFORIT_RESULT
71+
return ${WAITFORIT_RESULT}
6972
}
7073

7174
# process arguments

scripts/lint-sh.sh

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SH_SCRIPTS=$(find . -name '*.sh')
66
EXIT_STATUS=0
77

88
for script in ${SH_SCRIPTS}; do
9+
[[ ${script} == './.docker/wait-for-it.sh' ]] && continue
910
grep '^set -euo pipefail' "${script}" > /dev/null 2>&1 && continue
1011

1112
EXIT_STATUS=1

0 commit comments

Comments
 (0)