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:
Dom Cobley
2025-03-21 11:41:42 +00:00
committed by popcornmix
parent 7ce981c212
commit 1dd909e2c8

View File

@@ -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