Skip printing base commit message when JUST_CHECK=1

This commit is contained in:
popcornmix
2014-09-27 16:57:59 +01:00
parent e34682893d
commit 01f135f626

View File

@@ -252,7 +252,7 @@ else
echo " *** Firmware update required. New commits available:" echo " *** Firmware update required. New commits available:"
DIFF_API=${REPO_URI/github.com/api.github.com\/repos}/compare/$(cat "${FW_REVFILE}")...${BRANCH} DIFF_API=${REPO_URI/github.com/api.github.com\/repos}/compare/$(cat "${FW_REVFILE}")...${BRANCH}
SEPARATOR="======================================================" 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 exit 2
fi fi
fi fi