Add -r to read command.
This commit is contained in:
parent
27f4e2316f
commit
b3309f6c6a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user