mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
Skip invalid hash when using custom FW_REPOLOCAL
There is a mode where you can run rpi-update without a network, if you have a local copy of the repo files. e.g. SKIP_DOWNLOAD=1 SKIP_REPODELETE=1 FW_REPOLOCAL=/home/dom/.rpi-firmware rpi-update That is currently not usable because of the git hash check. So fix it.
This commit is contained in:
@@ -785,7 +785,7 @@ if [[ "${FW_REV}" == "" ]]; then
|
|||||||
SKIP_VCLIBS=1
|
SKIP_VCLIBS=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${FW_REV}" == "" ]]; then
|
if [[ "${FW_REV}" == "" ]] && [[ "$FW_REPOLOCAL" == "${WORK_PATH}/.rpi-firmware" ]]; then
|
||||||
echo " *** Invalid hash given"
|
echo " *** Invalid hash given"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user