style: unify read function across all scripts for cohesion

This commit is contained in:
Javier Ruiz Ramos 2024-08-07 16:02:47 +02:00
parent b1ae1d234e
commit c754afcd0d
3 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
# SDDM-themes
valid_input=false
while [ "$valid_input" != true ]; do
read -n 1 -r -p "${CAT} OPTIONAL - Would you like to install SDDM themes? (y/n)" install_sddm_theme
read -p "${CAT} OPTIONAL - Would you like to install SDDM themes? (y/n): " install_sddm_theme
if [[ $install_sddm_theme =~ ^[Yy]$ ]]; then
printf "\n%s - Installing Simple SDDM Theme\n" "${NOTE}"

View File

@ -59,7 +59,7 @@ sleep 1
printf "\n"
printf "${NOTE} XDG-desktop-portal-KDE & GNOME (if installed) should be manually disabled or removed! I can't remove it... sorry...\n"
while true; do
read -rp "${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n) " XDPH1
read -p "${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n): " XDPH1
echo
sleep 1

View File

@ -238,7 +238,7 @@ printf "\n${NOTE} You can start Hyprland by typing Hyprland (IF SDDM is not inst
printf "\n"
printf "\n${NOTE} It is highly recommended to reboot your system.\n\n"
read -rp "${CAT} Would you like to reboot now? (y/n): " HYP
read -p "${CAT} Would you like to reboot now? (y/n): " HYP
if [[ "$HYP" =~ ^[Yy]$ ]]; then
if [[ "$nvidia" == "Y" ]]; then