所以我有一個腳本(代碼如下),我得到以下錯誤。在iOS上的新行附近出現Bash語法錯誤
錯誤:
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
這爲一個iPod使用bash所以它可能是直接在桌面上的有所不同作了...如果有另一種方式來更新一個特定的包裝,這將是不錯的...
堆棧溢出的語法突出顯示可能會回答你的問題:看起來你錯過了「string2」後的一個結束雙引號 – 2014-09-18 19:22:00
這就是整個腳本......只是沒有shebang我會編輯它以反映代碼更多... – iTechy 2014-09-18 19:25:54