From e352b1a7b210b3a634cae21da563ee46a32359b7 Mon Sep 17 00:00:00 2001 From: Rounak Gh Date: Sat, 29 Nov 2025 10:30:46 +0530 Subject: [PATCH] Fix small bugs in argument handling and messages - omarchy-theme-set: Fix logic error (&&/!= should be ||/==) - omarchy-install-docker-dbs: Replace undefined main_menu with exit 0 - omarchy-cmd-screenshot: Fix little typo here 'selction' -> 'selection' - omarchy-upload-log: Fix usage message as the message suggested (system-info -> installed) --- bin/omarchy-cmd-screenshot | 2 +- bin/omarchy-install-docker-dbs | 2 +- bin/omarchy-theme-set | 2 +- bin/omarchy-upload-log | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/omarchy-cmd-screenshot b/bin/omarchy-cmd-screenshot index f4450f8958..abc5a32a88 100755 --- a/bin/omarchy-cmd-screenshot +++ b/bin/omarchy-cmd-screenshot @@ -43,7 +43,7 @@ case "$MODE" in SELECTION=$(echo "$RECTS" | slurp 2>/dev/null) kill $PID 2>/dev/null - # If the selction area is L * W < 20, we'll assume you were trying to select whichever + # If the selection area is L * W < 20, we'll assume you were trying to select whichever # window or output it was inside of to prevent accidental 2px snapshots if [[ "$SELECTION" =~ ^([0-9]+),([0-9]+)[[:space:]]([0-9]+)x([0-9]+)$ ]]; then if (( ${BASH_REMATCH[3]} * ${BASH_REMATCH[4]} < 20 )); then diff --git a/bin/omarchy-install-docker-dbs b/bin/omarchy-install-docker-dbs index 658a2b08c8..fa69fbd08f 100755 --- a/bin/omarchy-install-docker-dbs +++ b/bin/omarchy-install-docker-dbs @@ -3,7 +3,7 @@ options=("MySQL" "PostgreSQL" "Redis" "MongoDB" "MariaDB" "MSSQL") if [[ "$#" -eq 0 ]]; then - choices=$(printf "%s\n" "${options[@]}" | gum choose --header "Select database (return to install, esc to cancel)") || main_menu + choices=$(printf "%s\n" "${options[@]}" | gum choose --header "Select database (return to install, esc to cancel)") || exit 0 else choices="$@" fi diff --git a/bin/omarchy-theme-set b/bin/omarchy-theme-set index 4040426578..7d65ed9110 100755 --- a/bin/omarchy-theme-set +++ b/bin/omarchy-theme-set @@ -1,6 +1,6 @@ #!/bin/bash -if [[ -z $1 && $1 != "CNCLD" ]]; then +if [[ -z $1 || $1 == "CNCLD" ]]; then echo "Usage: omarchy-theme-set " exit 1 fi diff --git a/bin/omarchy-upload-log b/bin/omarchy-upload-log index bd98da8618..c5e5bac2fc 100755 --- a/bin/omarchy-upload-log +++ b/bin/omarchy-upload-log @@ -100,7 +100,7 @@ installed) ;; *) - echo "Usage: $0 [install|this-boot|last-boot|system-info]" + echo "Usage: $0 [install|this-boot|last-boot|installed]" echo " install - Upload installation logs (default)" echo " this-boot - Upload logs from current boot" echo " last-boot - Upload logs from previous boot"