Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Skip printing base commit message when JUST_CHECK=1

commit 01f135f626f342d985fa728ca78f72ef49678c93 1 parent e346828
popcornmix popcornmix authored
Showing with 1 addition and 1 deletion.
  1. +1 1  rpi-update
2  rpi-update
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.