From 01f135f626f342d985fa728ca78f72ef49678c93 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sat, 27 Sep 2014 16:57:59 +0100 Subject: [PATCH] Skip printing base commit message when JUST_CHECK=1 --- rpi-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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