Skip to content

Commit

Permalink
in utils.sh: 'date +%s' is more portable than 'EPOCHSECONDS'
Browse files Browse the repository at this point in the history
  • Loading branch information
calebofearth committed Nov 19, 2024
1 parent 5f389c9 commit 4f51abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ wait_for_phrase () {
fi

# Wait for the phrase
DEADLINE=$((${EPOCHSECONDS} + 30))
while [ ${EPOCHSECONDS} -lt ${DEADLINE} ]
DEADLINE=$(($(date +%s) + 30))
while [ $(date +%s) -lt ${DEADLINE} ]
do
# Check for the phrase
grep "$2" "$1" >/dev/null
Expand Down

0 comments on commit 4f51abf

Please sign in to comment.