From bd0cd2a4163591669758947168c68b4567f94161 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Wed, 24 Jan 2024 11:49:10 +0100 Subject: [PATCH] Update --- .install/profile.sh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.install/profile.sh b/.install/profile.sh index 7a52925..8acaadd 100755 --- a/.install/profile.sh +++ b/.install/profile.sh @@ -8,15 +8,9 @@ echo -e "${NONE}" 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") -IFS=' ' read -r -a profile_array <<< "$profile" - -echo $profile_array - -echo "${#profile_array[@]}" - -# if [ -z $profile ] ;then -# echo "No profile selected. Installation canceled." -# exit -# else -# echo "Profile/s selected: $profile" -# fi +if [ -z "${profile}" ] ;then + echo "No profile selected. Installation canceled." + exit +else + echo "Profile/s selected:" $profile +fi