From b3309f6c6a341c7bba907230d74c5b082ba100b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Fri, 17 Jan 2025 14:39:50 +0100 Subject: [PATCH] Add -r to read command. --- play-lofi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/play-lofi b/play-lofi index 6002f69..77732f7 100755 --- a/play-lofi +++ b/play-lofi @@ -61,7 +61,7 @@ new_link() { while [ "$opt" -gt "${#streams[@]}" ] || [ "$opt" -lt "1" ] do printf "Selection: " - read opt + read -r opt done link=${streams[$opt]} link=${link//\" \"*/} @@ -105,7 +105,7 @@ then while [ "$option" != "y" ] && [ "$option" != "n" ] do printf "Would you like to create one? [y/n] " - read option + read -r option done [ "$option" = "n" ] && exit 1 new_link @@ -122,7 +122,7 @@ then while [ "$option" != "y" ] && [ "$option" != "n" ] do printf "Would you like to find a new one? [y/n] " - read option + read -r option done [ "$option" = "n" ] && exit 1 new_link