scripts: better error message for nm-code-format.sh

Signed-off-by: Antonio Cardace <acardace@redhat.com>
This commit is contained in:
Antonio Cardace 2020-09-02 18:24:09 +02:00
parent eda1ef4242
commit 5119d00374
No known key found for this signature in database
GPG key ID: 6BF80ABD43E377D3

View file

@ -63,7 +63,7 @@ for f in "${FILES[@]}"; do
clang-format $f > $TMP_FILE
git --no-pager diff $f $TMP_FILE || true
rm $TMP_FILE
echo "Error: $f code-style is wrong, fix it by running '$(basename $0) -i'"
echo "Error: $(basename $f) code-style is wrong, fix it by running '$0 -i $f)"
exit 1
fi
else