diff --git a/rpi-update b/rpi-update index 910eddb..4f9e380 100755 --- a/rpi-update +++ b/rpi-update @@ -252,7 +252,7 @@ else echo " *** Firmware update required. New commits available:" DIFF_API=${REPO_URI/github.com/api.github.com\/repos}/compare/$(cat "${FW_REVFILE}")...${BRANCH} SEPARATOR="======================================================" - curl -s ${DIFF_API} | awk -v SEPARATOR="${SEPARATOR}" -F\" ' { if ($2 == "message") {print SEPARATOR "\n" $4} }' | sed 's/\\n/\n/g' + curl -s ${DIFF_API} | awk -v SEPARATOR="${SEPARATOR}" -F\" ' { if ($2 == "commits") {commits=1} if (commits && $2 == "message") {print SEPARATOR "\n" $4} }' | sed 's/\\n/\n/g' exit 2 fi fi