Browse files

Avoid error with missing git repo when using rpi-update <hash> for fi…

…rst time
  • Loading branch information...
1 parent 8d3fda8 commit 786656bb5a415da0b64a3b4110a1f4797a768570 @popcornmix popcornmix committed Dec 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 rpi-update
View
4 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
}

0 comments on commit 786656b

Please sign in to comment.