Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Fix grep command (#481)
Browse files Browse the repository at this point in the history
Without "--", grep interprets search string "-t" as flag
  • Loading branch information
WalterS authored Jun 9, 2020
1 parent a220e34 commit 5ef5509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/wait-for-it/wait-for-it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ if [[ $WAITFORIT_TIMEOUT_PATH =~ "busybox" ]]; then
WAITFORIT_ISBUSY=1
# Check if busybox timeout uses -t flag
# (recent Alpine versions don't support -t anymore)
if timeout &>/dev/stdout | grep -q -e '-t '; then
if timeout &>/dev/stdout | grep -q -e -- '-t '; then
WAITFORIT_BUSYTIMEFLAG="-t"
fi
else
Expand Down

0 comments on commit 5ef5509

Please sign in to comment.