From c754afcd0d3ab13cb34caa03d4591ea79a3e996f Mon Sep 17 00:00:00 2001 From: Javier Ruiz Ramos Date: Wed, 7 Aug 2024 16:02:47 +0200 Subject: [PATCH] style: unify read function across all scripts for cohesion --- install-scripts/sddm.sh | 2 +- install-scripts/xdph.sh | 2 +- install.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install-scripts/sddm.sh b/install-scripts/sddm.sh index 97f3067..d5a1097 100755 --- a/install-scripts/sddm.sh +++ b/install-scripts/sddm.sh @@ -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}" diff --git a/install-scripts/xdph.sh b/install-scripts/xdph.sh index c8803e1..9718045 100755 --- a/install-scripts/xdph.sh +++ b/install-scripts/xdph.sh @@ -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 diff --git a/install.sh b/install.sh index 7b21b83..bcafde9 100755 --- a/install.sh +++ b/install.sh @@ -35,7 +35,7 @@ echo "$(tput bold)$(tput setaf 7)This would also mean that support for this proj echo "$(tput bold)$(tput setaf 7)Please be guided$(tput sgr0)" printf "\n%.0s" {1..3} -read -p "$(tput setaf 6)Would you like to proceed? (y/n): $(tput sgr0)" proceed +read -p "$(tput setaf 6)Would you like to proceed? (y/n) : $(tput sgr0)" proceed if [ "$proceed" != "y" ]; then echo "Installation aborted." @@ -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