Skip to content

Commit 3d3e431

Browse files
authored
Merge pull request #937 from per1234/fix-shell
Correct syntax of shell code in "Check Certificates" workflow
2 parents c83f15e + e87d3b5 commit 3d3e431

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)