From 71708b8954dd379af3e47de3dc9f5bf8b3ca31c3 Mon Sep 17 00:00:00 2001 From: "adamlui@protonmail.com" Date: Mon, 16 Dec 2024 03:39:10 -0800 Subject: [PATCH] Replaced numeric conditional expressions w/ `(( ... ))` syntax for improved efficiency/readability --- .github/workflows/sync-changes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-changes.yml b/.github/workflows/sync-changes.yml index 2d1c53a..3421b56 100644 --- a/.github/workflows/sync-changes.yml +++ b/.github/workflows/sync-changes.yml @@ -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