From 01a52030097b392802a8ea445868f67e09e530d1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 22 Jul 2026 09:47:46 -0700 Subject: [PATCH] Pick the test ISO like omarchy-iso-boot does Offer the same gum chooser over release/*.iso when no ISO is passed, and fail plainly when there is no existing ISO to test. Co-Authored-By: Claude Fable 5 --- bin/omarchy-iso-test | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-iso-test b/bin/omarchy-iso-test index 6a6cf9b..93bef6c 100755 --- a/bin/omarchy-iso-test +++ b/bin/omarchy-iso-test @@ -61,11 +61,12 @@ while (($#)); do shift done -if [[ -z $ISO ]]; then - ISO=$(ls -t "$REPO_DIR"/release/*.iso 2>/dev/null | head -1) || true +if [[ -z $ISO && -t 0 ]]; then + ISO=$(ls -t "$REPO_DIR"/release/*.iso 2>/dev/null | gum choose --header "Select ISO to test") fi if [[ ! -f ${ISO:-} ]]; then + echo "No ISO to test. Pass one explicitly or put it in release/." >&2 echo "Usage: omarchy-iso-test [release/omarchy.iso] [options]" >&2 exit 1 fi