From 4c6d62971d777359e0916e537ac6f64aee232d39 Mon Sep 17 00:00:00 2001 From: Lexi <63929325+ShyyLexi@users.noreply.github.com> Date: Wed, 24 Aug 2022 18:00:24 +0000 Subject: [PATCH] Remove fish package if not needed --- jade-tui | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/jade-tui b/jade-tui index eda0b55..c0f46b4 100755 --- a/jade-tui +++ b/jade-tui @@ -36,11 +36,6 @@ clear gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Please enter your username" username=$(gum input --placeholder "Please enter your username") -# Default shell -clear -gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Select a default shell" -shell=$(gum choose --limit 1 fish zsh bash) - # User password matches="false" passwrong="false" @@ -92,6 +87,16 @@ else fi crypt_root_password=$(openssl passwd -crypt ${root_password}) +# Default shell +clear +gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Select a default shell" +shell=$(gum choose --limit 1 fish zsh bash) +if [[ "$shell" == "fish" ]]; then + fish_pkg="\"fish\"" +else + fish_pkg="" +fi + # Hostname clear gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Please enter a hostname" @@ -186,8 +191,8 @@ else \"desktop\": \"$desktop\", \"timeshift\": $enable_timeshift, \"extra_packages\": [ - \"fish\" - ], + $fish_pkg + ], \"flatpak\": $enable_flatpak, \"zramd\": $enable_zramd, \"unakite\": {