Linux 当我尝试运行此脚本时,出现意外的文件结尾

Linux 当我尝试运行此脚本时,出现意外的文件结尾,linux,bash,Linux,Bash,显示菜单的更可靠的方法是select命令 echo "Gateway: 192.168.0.1 | Interface: Wlan0" echo "###########################" echo "1) Update Kali 4) Thanks too.." echo "2) Software and System Tools 5) Must View" echo "3) Install Hacking Tools 6)

显示菜单的更可靠的方法是
select
命令

echo "Gateway: 192.168.0.1 | Interface: Wlan0" 
echo "###########################"
echo "1) Update Kali                    4) Thanks too.."
echo "2) Software and System Tools      5) Must View"
echo "3) Install Hacking Tools  6) Terminate Program"
echo ""
read Option1 Option2 Option3 Option4 Option4 Option5 Option6

if [ "$Option1" = "1" ]; then
echo "Test"
clear
if [ "$Option2" = "2" ]; then
echo "test"
clear
if [ "$Option3" = "3" ]; then
echo "Test"
clear
if [ "$Option4" = "4" ]; then
echo "chicken"
clear
if [ "$Option5" = "5" ]; then
echo "Test"
clear
if [ "$Option6" = "6" ]; then
echo "The End"
clear

显示菜单的更可靠的方法是
select
命令

echo "Gateway: 192.168.0.1 | Interface: Wlan0" 
echo "###########################"
echo "1) Update Kali                    4) Thanks too.."
echo "2) Software and System Tools      5) Must View"
echo "3) Install Hacking Tools  6) Terminate Program"
echo ""
read Option1 Option2 Option3 Option4 Option4 Option5 Option6

if [ "$Option1" = "1" ]; then
echo "Test"
clear
if [ "$Option2" = "2" ]; then
echo "test"
clear
if [ "$Option3" = "3" ]; then
echo "Test"
clear
if [ "$Option4" = "4" ]; then
echo "chicken"
clear
if [ "$Option5" = "5" ]; then
echo "Test"
clear
if [ "$Option6" = "6" ]; then
echo "The End"
clear

您需要使用
fi
关键字(并且取决于您试图实现的
elif
也可能需要。您需要使用
fi
关键字(并且取决于您试图实现的
elif
也可能需要)。