mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
Removed insecure temp file
This commit is contained in:
@@ -42,7 +42,7 @@ function update_self() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat > /tmp/updateScript.sh << EOF
|
||||
cat > /root/.updateScript.sh << EOF
|
||||
#!/bin/bash
|
||||
if mv "${_tempFileName}" "$0"; then
|
||||
rm -- "\$0"
|
||||
@@ -53,7 +53,7 @@ function update_self() {
|
||||
EOF
|
||||
|
||||
echo " *** Relaunching after update"
|
||||
exec /bin/bash /tmp/updateScript.sh
|
||||
exec /bin/bash /root/.updateScript.sh
|
||||
}
|
||||
|
||||
function update_modules {
|
||||
|
||||
Reference in New Issue
Block a user