mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
Remove embedded shebang
.updateScript.sh doesn't need the #! line because it specifically gets exec-ed using /bin/bash
This commit is contained in:
@@ -44,7 +44,6 @@ function update_self() {
|
||||
fi
|
||||
|
||||
cat > /root/.updateScript.sh << EOF
|
||||
#!/bin/bash
|
||||
if mv "${_tempFileName}" "$0"; then
|
||||
rm -- "\$0"
|
||||
exec env UPDATE_SELF=0 /bin/bash "$0" "${FW_REV}"
|
||||
|
||||
Reference in New Issue
Block a user