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

Fix grep command #481

Merged
merged 2 commits into from
Jun 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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