我使用了下面的一些schript来给出一个选项菜单,但是它有一个
syntax error: 'select' unmatched 这是我的脚本部分,我不能使用elif命令,因为android无法识别它。
OPTIONS="Continue Quit"
select opt in $OPTIONS; do
if [ "$opt" = "Quit" ]; then
echo closing Android Hardening
sleep 5
exit
fi
if [ "$opt" = "Continue" ]; then
echo ANDROID
echo HARDENING
else
echo incorrect selection restart application
sleep 7
exit 1
fi发布于 2013-01-21 22:23:25
您必须关闭select ...使用匹配的od执行操作
https://stackoverflow.com/questions/14440608
复制相似问题