From 6bab03cbc98e6ce9648b8c3d0d224de1b9b064c6 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Tue, 27 Aug 2013 02:02:24 +0100 Subject: [PATCH] Replace ${FW_REPOLOCAL}/${FW_REV}.tar.gz with $FW_TARBALL --- rpi-update | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rpi-update b/rpi-update index 9a3ead9..4da123e 100755 --- a/rpi-update +++ b/rpi-update @@ -159,9 +159,10 @@ function do_update { function download_rev { echo " *** Downloading specific firmware revision (this will take a few minutes)" mkdir -p "${FW_REPOLOCAL}" - wget "${REPO_URI}/tarball/${FW_REV}" -O "${FW_REPOLOCAL}/${FW_REV}.tar.gz" - tar xzf "${FW_REPOLOCAL}/${FW_REV}.tar.gz" -C "${FW_REPOLOCAL}" --strip-components=1 - rm "${FW_REPOLOCAL}/${FW_REV}.tar.gz" + FW_TARBALL="${FW_REPOLOCAL}/${FW_REV}.tar.gz" + wget "${REPO_URI}/tarball/${FW_REV}" -O "${FW_TARBALL}" + tar xzf "${FW_TARBALL}" -C "${FW_REPOLOCAL}" --strip-components=1 + rm "${FW_TARBALL}" } if [[ ${EUID} -ne 0 ]]; then