Skip to content

Commit

Permalink
Merge pull request #160 from lurch/patch-2
Browse files Browse the repository at this point in the history
Minor consistency fixes
  • Loading branch information
popcornmix committed Jan 30, 2015
2 parents ffb686f + 8c76703 commit 74c5506
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rpi-update
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ function update_firmware {
echo " *** As requested, not updating kernel"
fi
if [[ ${WANT_SYMVERS} -ne 0 ]]; then
if [[ -f "${FW_REPOLOCAL}/"Module.symvers ]]; then
cp "${FW_REPOLOCAL}/"Module.symvers "${FW_PATH}/"
if [[ -f "${FW_REPOLOCAL}/Module.symvers" ]]; then
cp "${FW_REPOLOCAL}/Module.symvers" "${FW_PATH}/"
fi
if [[ -f "${FW_REPOLOCAL}/"git_hash ]]; then
cp "${FW_REPOLOCAL}/"git_hash "${FW_PATH}/"
if [[ -f "${FW_REPOLOCAL}/git_hash" ]]; then
cp "${FW_REPOLOCAL}/git_hash" "${FW_PATH}/"
fi
fi
}
Expand Down Expand Up @@ -239,9 +239,9 @@ FW_REV=${FW_REV:-${GITREV}}

if [[ "${FW_REV}" == "" ]]; then
echo " *** No hash received from github: ${REPO_API}"
# run again with errors not suppressed
curl ${REPO_API}
exit 1
# run again with errors not suppressed
curl ${REPO_API}
exit 1
fi

if [[ ! -f "${FW_REVFILE}" ]]; then
Expand All @@ -251,7 +251,7 @@ if [[ ! -f "${FW_REVFILE}" ]]; then
fi
do_backup
else
if [[ $(cat "${FW_REVFILE}") == "$FW_REV" ]]; then
if [[ $(cat "${FW_REVFILE}") == "${FW_REV}" ]]; then
echo " *** Your firmware is already up to date"
exit 0
fi
Expand Down

0 comments on commit 74c5506

Please sign in to comment.