This commit is contained in:
Stephan Raabe 2024-01-24 11:49:10 +01:00
parent f67a059c27
commit bd0cd2a416

View File

@ -8,15 +8,9 @@ echo -e "${NONE}"
echo "SPACE = select/unselect a profile. RETURN = confirm. No selection = CANCEL" echo "SPACE = select/unselect a profile. RETURN = confirm. No selection = CANCEL"
profile=$(gum choose --no-limit --cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) " "Hyprland" "Qtile") profile=$(gum choose --no-limit --cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) " "Hyprland" "Qtile")
IFS=' ' read -r -a profile_array <<< "$profile" if [ -z "${profile}" ] ;then
echo "No profile selected. Installation canceled."
echo $profile_array exit
else
echo "${#profile_array[@]}" echo "Profile/s selected:" $profile
fi
# if [ -z $profile ] ;then
# echo "No profile selected. Installation canceled."
# exit
# else
# echo "Profile/s selected: $profile"
# fi