aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/commit-msg/spellcheck7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/commit-msg/spellcheck b/contrib/commit-msg/spellcheck
index de4147c..0b9938d 100755
--- a/contrib/commit-msg/spellcheck
+++ b/contrib/commit-msg/spellcheck
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright (c) 2010, Benjamin C. Meyer <ben@meyerhome.net>
+# Copyright (c) 2010-2012, Benjamin C. Meyer <ben@meyerhome.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -26,14 +26,15 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-set -e
-
function run_test
{
which aspell > /dev/null
if [ ! $? -eq 0 ] ; then
exit 0
fi
+
+ set -e
+
warnings=`cat "${1}" | grep -v '^#.*' | aspell list`
if [ ! -z "${warnings}" ] ; then
echo >&2 "Possible spelling errors in the commit message:"