Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e87d3b5

Browse files
committed
Correct syntax of shell code in "Check Certificates" workflow
Previously, the command was erroneously split at the first parenthesis. This resulted in the introduction of spaces between the two parentheses, which caused the syntax to be interpreted as a command substitution operator instead of the intended arithmetic expansion operator. This caused the command to fail: ``` /home/runner/work/_temp/2470dde2-826c-4a00-8268-b8d111566dc2.sh: line 46: syntax error near unexpected token `/' ```
1 parent c83f15e commit e87d3b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎.github/workflows/check-certificates.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ jobs:
172172
)"
173173
fi
174174
175-
DAYS_BEFORE_EXPIRATION="$(
176-
(($(date --utc --date="$EXPIRATION_DATE" +%s) - $(date --utc +%s)) / 60 / 60 / 24)
177-
)"
175+
DAYS_BEFORE_EXPIRATION="$((
176+
($(date --utc --date="$EXPIRATION_DATE" +%s) - $(date --utc +%s)) / 60 / 60 / 24
177+
))"
178178
179179
# Display the expiration information in the log.
180180
echo "Certificate expiration date: $EXPIRATION_DATE"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /