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