iOS上新行附近的Bash语法错误
因此,我有一个脚本(代码如下),我得到以下错误 错误:iOS上新行附近的Bash语法错误,ios,bash,unix,apt-get,Ios,Bash,Unix,Apt Get,因此,我有一个脚本(代码如下),我得到以下错误 错误: Syntax error near unexpected token newline (line 5) 这个错误的代码是 Sbalert -t "Updating" -m "Downloading and installing the update. Please don't touch your device until it reboots" -d "" & alert_id="$!" apt-get install --o
Syntax error near unexpected token newline (line 5)
这个错误的代码是
Sbalert -t "Updating" -m "Downloading and installing the update. Please don't touch your device until it reboots" -d "" &
alert_id="$!"
apt-get install --only-upgrade <Whited00r 7.1 OTA>
reboot
Sbalert-t“更新”-m“下载并安装更新。在设备重新启动“-d”之前,请不要触摸设备
警报_id=“$!”
apt get install--仅升级
重新启动
这是为使用bash的iPod制作的,所以它可能与桌面上的不同。。。如果有另一种方法来更新特定的软件包,那也很好…考虑这一行:
apt-get install --only-upgrade <Whited00r 7.1 OTA>
但是,我不知道这是否是您可以安装的软件包的名称。Stack Overflow的语法突出显示可能回答了您的问题:看起来您在
“string2
。这就是整个脚本。。。如果没有shebang,我会编辑它以反映更多的代码…这是一个打字错误。。更新了代码以修复它。很抱歉。@itechy21这是正确的答案。该行的
部分不正确。您要安装的软件包的名称是什么?我曾经获得过使用信息。非常感谢您的帮助。这是正确的软件包,因为它被称为Whited00r 7.1 OTA,并通过cydia在iOS上完成,但使用apt get,我已经摆脱了cydia对旧idevices的缓慢。。。
apt-get install --only-upgrade "Whited00r 7.1 OTA"