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