From bd2f6f965d93d78c1edad2af6aa911bb1e9fad1a Mon Sep 17 00:00:00 2001 From: deicidus Date: Sat, 6 May 2023 21:59:30 -0700 Subject: [PATCH] added default value in gt comparison --- spells/cantrips/menu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spells/cantrips/menu b/spells/cantrips/menu index 379f52e..f8441d8 100755 --- a/spells/cantrips/menu +++ b/spells/cantrips/menu @@ -55,7 +55,7 @@ done # Make sure the menu items don't wrap, multiline menu items are not supported window_width=$(fathom-terminal -w) -if [ ${max_name_length:0} -gt ${window_width:80} ]; then +if [ "${max_name_length:0}" -gt "${window_width:80}" ]; then max_name_length=$window_width fi