mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
Replace ${FW_REPOLOCAL}/${FW_REV}.tar.gz with $FW_TARBALL
This commit is contained in:
@@ -159,9 +159,10 @@ function do_update {
|
|||||||
function download_rev {
|
function download_rev {
|
||||||
echo " *** Downloading specific firmware revision (this will take a few minutes)"
|
echo " *** Downloading specific firmware revision (this will take a few minutes)"
|
||||||
mkdir -p "${FW_REPOLOCAL}"
|
mkdir -p "${FW_REPOLOCAL}"
|
||||||
wget "${REPO_URI}/tarball/${FW_REV}" -O "${FW_REPOLOCAL}/${FW_REV}.tar.gz"
|
FW_TARBALL="${FW_REPOLOCAL}/${FW_REV}.tar.gz"
|
||||||
tar xzf "${FW_REPOLOCAL}/${FW_REV}.tar.gz" -C "${FW_REPOLOCAL}" --strip-components=1
|
wget "${REPO_URI}/tarball/${FW_REV}" -O "${FW_TARBALL}"
|
||||||
rm "${FW_REPOLOCAL}/${FW_REV}.tar.gz"
|
tar xzf "${FW_TARBALL}" -C "${FW_REPOLOCAL}" --strip-components=1
|
||||||
|
rm "${FW_TARBALL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ ${EUID} -ne 0 ]]; then
|
if [[ ${EUID} -ne 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user