![неожиданный EOF при поиске соответствия `"'](https://rvso.com/image/1452280/%D0%BD%D0%B5%D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%B9%20EOF%20%D0%BF%D1%80%D0%B8%20%D0%BF%D0%BE%D0%B8%D1%81%D0%BA%D0%B5%20%D1%81%D0%BE%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D1%81%D1%82%D0%B2%D0%B8%D1%8F%20%60%22'.png)
JACOB=192.168.1.66
ZAC=192.168.1.65
echo "Type someone's name, or type ? to list options."
read OPTNAME
if [ $OPTNAME = "?" ]; then
echo "Jacob's Computer: Type 'JACOB'"
echo "Zac's Computer: Type 'Zac'"
echo "Help: Type 'Help'"
else
if [ $OPTNAME = "JACOB" ]; then
echo "Jacobs Computer chosen."
echo "Now, enter the directory of the file you want to put onto this computer."
read FILEPATH
echo "Okay, would you like to specify a directory on the other computer, in which to place the file? (y/n)"
read YN
echo "DEBUG $YN"
if [ $YN = "y" ]; then
echo "Okay, in which directory would you like to put the file?"
read FILETO
echo "Are you ready to send the file? y/n"
echo "Reciever name: $OPTNAME"
echo "File to send: $FILEPATH"
echo "Where to put the file: $FILETO"
elif [ $YN = "n" ]; then
echo "Are you ready to send the file? y/n"
echo "Reciever name: $OPTNAME
echo "File to send: $FILEPATH"
echo "Where to put the file: N/A"
fi
elif [ $OPTNAME = "ZAC" ]; then
echo "Zacs Computer chosen."
fi
fi
Это код, который я пишу, чтобы иметь возможность указать файл и пользователя для отправки файла на его компьютер. У меня проблема, когда я запускаю его, он возвращает эти ошибки:
filetransfer.sh: line 32: unexpected EOF while looking for matching `"'
filetransfer.sh: line 35: syntax error: unexpected end of file