From c2f73c1f0964a57617b2dc27338da582a32c7416 Mon Sep 17 00:00:00 2001 From: Alan Maciel Date: Sun, 3 Nov 2024 00:16:13 -0600 Subject: [PATCH] Fix tabs --- bin/omakub-sub/install.sh | 66 +++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/bin/omakub-sub/install.sh b/bin/omakub-sub/install.sh index a399cc2..5f92285 100644 --- a/bin/omakub-sub/install.sh +++ b/bin/omakub-sub/install.sh @@ -1,47 +1,47 @@ CHOICES=( - "Dev Language Install programming language environment" - "Dev Database Install development database in Docker" - "1password Manage your passwords securely across devices" - "Audacity Record and edit audio" - "Brave Chrome-based browser with built-in ad blocking" - "Cursor The AI Code Editor" - "Doom Emacs Emacs framework with curated list of packages" - "Dropbox Sync files across computers with ease" - "OBS Studio Record screencasts with inputs from both display + webcam" - "Ollama Run LLMs, like Meta's Llama3, locally" - "RubyMine IntelliJ's commercial Ruby editor" - "Spotify Stream music from the world's most popular service" - "Steam Play games from Valve's store" - "VirtualBox Virtual machines to run Windows/Linux" - "Zed Fast all-purpose editor" - "Zoom Attend and host video chat meetings" - "> All Re-run any of the default installers" - "<< Back " + "Dev Language Install programming language environment" + "Dev Database Install development database in Docker" + "1password Manage your passwords securely across devices" + "Audacity Record and edit audio" + "Brave Chrome-based browser with built-in ad blocking" + "Cursor The AI Code Editor" + "Doom Emacs Emacs framework with curated list of packages" + "Dropbox Sync files across computers with ease" + "OBS Studio Record screencasts with inputs from both display + webcam" + "Ollama Run LLMs, like Meta's Llama3, locally" + "RubyMine IntelliJ's commercial Ruby editor" + "Spotify Stream music from the world's most popular service" + "Steam Play games from Valve's store" + "VirtualBox Virtual machines to run Windows/Linux" + "Zed Fast all-purpose editor" + "Zoom Attend and host video chat meetings" + "> All Re-run any of the default installers" + "<< Back " ) CHOICE=$(gum choose "${CHOICES[@]}" --height 19 --header "Install application") if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then - # Don't install anything - echo "" + # Don't install anything + echo "" elif [[ "$CHOICE" == "> All"* ]]; then - INSTALLER_FILE=$(gum file $OMAKUB_PATH/install) + INSTALLER_FILE=$(gum file $OMAKUB_PATH/install) - [[ -n "$INSTALLER_FILE" ]] && - gum confirm "Run installer?" && - source $INSTALLER_FILE && - gum spin --spinner globe --title "Install completed!" -- sleep 3 + [[ -n "$INSTALLER_FILE" ]] && + gum confirm "Run installer?" && + source $INSTALLER_FILE && + gum spin --spinner globe --title "Install completed!" -- sleep 3 else - INSTALLER=$(echo "$CHOICE" | awk -F ' {2,}' '{print $1}' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g') + INSTALLER=$(echo "$CHOICE" | awk -F ' {2,}' '{print $1}' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g') - case "$INSTALLER" in - "dev-language") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-language.sh" ;; - "dev-database") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-storage.sh" ;; - "ollama") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-ollama.sh" ;; - *) INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/app-$INSTALLER.sh" ;; - esac + case "$INSTALLER" in + "dev-language") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-language.sh" ;; + "dev-database") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-storage.sh" ;; + "ollama") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-ollama.sh" ;; + *) INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/app-$INSTALLER.sh" ;; + esac - source $INSTALLER_FILE && gum spin --spinner globe --title "Install completed!" -- sleep 3 + source $INSTALLER_FILE && gum spin --spinner globe --title "Install completed!" -- sleep 3 fi clear