Make commands more resilient

This commit is contained in:
David Heinemeier Hansson
2024-06-03 15:32:02 -07:00
parent 07894acedd
commit 87dc5549dc
4 changed files with 14 additions and 5 deletions

View File

@ -1,5 +1,12 @@
#!/bin/bash
source $OMAKUB_PATH/ascii.sh
SUB=$(gum choose "Help" "Theme" "Font" "Install" | tr '[:upper:]' '[:lower:]')
source $OMAKUB_PATH/bin/omakub-$SUB
if [ $# -eq 0 ]; then
SUB=$(gum choose "Help" "Theme" "Font" "Install" --height 7 --header "" | tr '[:upper:]' '[:lower:]')
else
SUB=$1
fi
[ -n "$SUB" ] && source $OMAKUB_PATH/bin/omakub-$SUB