From 786656bb5a415da0b64a3b4110a1f4797a768570 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 18 Dec 2012 00:43:32 +0000 Subject: [PATCH] Avoid error with missing git repo when using rpi-update for first time --- rpi-update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpi-update b/rpi-update index c087c72..aa35ab7 100755 --- a/rpi-update +++ b/rpi-update @@ -94,7 +94,9 @@ function finalise { cp "${FW_PATH}/arm192_start.elf" "${FW_PATH}/start.elf" fi ldconfig -r "${ROOT_PATH}" - eval ${GITCMD} rev-parse master > "${FW_PATH}/.firmware_revision" + if [[ ${FW_REV} == "" ]]; then + eval ${GITCMD} rev-parse master > "${FW_PATH}/.firmware_revision" + fi sync }