Minor consistency fixes

This commit is contained in:
Andrew Scheller
2015-01-30 01:03:35 +00:00
parent ffb686f12a
commit 8c76703ea0

View File

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