Add -r to read command.

This commit is contained in:
Nicolás A. Ortega Froysa 2025-01-17 14:39:50 +01:00
parent 27f4e2316f
commit b3309f6c6a

View File

@ -61,7 +61,7 @@ new_link() {
while [ "$opt" -gt "${#streams[@]}" ] || [ "$opt" -lt "1" ] while [ "$opt" -gt "${#streams[@]}" ] || [ "$opt" -lt "1" ]
do do
printf "Selection: " printf "Selection: "
read opt read -r opt
done done
link=${streams[$opt]} link=${streams[$opt]}
link=${link//\" \"*/} link=${link//\" \"*/}
@ -105,7 +105,7 @@ then
while [ "$option" != "y" ] && [ "$option" != "n" ] while [ "$option" != "y" ] && [ "$option" != "n" ]
do do
printf "Would you like to create one? [y/n] " printf "Would you like to create one? [y/n] "
read option read -r option
done done
[ "$option" = "n" ] && exit 1 [ "$option" = "n" ] && exit 1
new_link new_link
@ -122,7 +122,7 @@ then
while [ "$option" != "y" ] && [ "$option" != "n" ] while [ "$option" != "y" ] && [ "$option" != "n" ]
do do
printf "Would you like to find a new one? [y/n] " printf "Would you like to find a new one? [y/n] "
read option read -r option
done done
[ "$option" = "n" ] && exit 1 [ "$option" = "n" ] && exit 1
new_link new_link