Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug where update fails when run from another path

  • Loading branch information...
commit ac4f9d1aec2ef255697a0e24fbfa8513ca6337e1 1 parent 80c9961
@Hexxeh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  rpi-update
View
2  rpi-update
@@ -27,7 +27,7 @@ function update_self() {
tail --lines=+2 "$_payloadName" >> "$_tempFileName"
rm "$_payloadName"
- OCTAL_MODE=$(stat -c '%a' $SELF)

This was the only reference to $SELF. Line 6 is now redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ OCTAL_MODE=$(stat -c '%a' $0)
if ! chmod $OCTAL_MODE "$_tempFileName" ; then
echo "Failed: Error while trying to set mode on $_tempFileName."
exit 1
@TheOneIota

This was the only reference to $SELF. Line 6 is now redundant.

Please sign in to comment.
Something went wrong with that request. Please try again.