From 631b62927af13799d5efb05ad090638799c0071e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 2 Aug 2025 22:14:16 +0200 Subject: [PATCH] Better than doing string comparison Any tag difference means new release --- bin/omarchy-update-available | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-update-available b/bin/omarchy-update-available index f319617..8a5bfa0 100755 --- a/bin/omarchy-update-available +++ b/bin/omarchy-update-available @@ -4,7 +4,7 @@ omarchy_path="$HOME/.local/share/omarchy" latest_tag=$(git -C $omarchy_path ls-remote --tags origin | grep -v "{}" | awk '{print $2}' | sed 's#refs/tags/##' | sort -V | tail -n 1) current_tag=$(git -C $omarchy_path describe --tags $(git -C $omarchy_path rev-list --tags --max-count=1)) -if [[ "$current_tag" < "$latest_tag" ]]; then +if [[ "$current_tag" != "$latest_tag" ]]; then echo "Omarchy update available ($latest_tag)" exit 0 else