Skip to content

Commit

Permalink
Replaced numeric conditional expressions w/ (( ... )) syntax for im…
Browse files Browse the repository at this point in the history
…proved efficiency/readability
  • Loading branch information
adamlui committed Dec 16, 2024
1 parent 7d6bb14 commit 71708b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
chromium_timestamp=$(git log -1 --format="%ct" -- "$chromium_file" 2>/dev/null || echo 0)
# Sync the most recently updated messages.json to the other dir
if [[ $ff_timestamp -ne $chromium_timestamp ]] ; then
if (( $ff_timestamp != $chromium_timestamp )) ; then
[[ "$locales_updated" != true ]] && locales_updated=true
if [[ $ff_timestamp -gt $chromium_timestamp ]] ; then
if (( $ff_timestamp > $chromium_timestamp )) ; then
cp -f "$ff_file" "$chromium_file"
else cp -f "$chromium_file" "$ff_file" ; fi
fi
Expand Down

0 comments on commit 71708b8

Please sign in to comment.