From d8f84bcc39f636820f268d6e70b4068eb0d79558 Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Thu, 11 Oct 2018 05:52:37 -0700 Subject: [PATCH] Print missing Signed-off-by line info Signed-off-by: Fabio Utzig --- scripts/check-signed-off-by.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/check-signed-off-by.sh b/scripts/check-signed-off-by.sh index 38537c77..42818716 100755 --- a/scripts/check-signed-off-by.sh +++ b/scripts/check-signed-off-by.sh @@ -46,8 +46,13 @@ for sha in $commits; do [[ ${found_author} == true && ${found_committer} == true ]] && break done + if [[ ${found_author} == false ]]; then + echo -e "Missing \"Signed-off-by\" for \"${author}\" in commit ${sha}" + fi + if [[ ${found_committer} == false ]]; then + echo -e "Missing \"Signed-off-by\" for \"${commiter}\" in commit ${sha}" + fi if [[ ${found_author} == false || ${found_committer} == false ]]; then - echo -e "One or more \"Signed-off-by\" lines missing in commit ${sha}" exit 1 fi