aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-20 12:12:44 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-20 12:12:44 +0200
commite8e3d60b8c258bd7604457ad0db0c2017f50af3e (patch)
treee0efac7f7945ebf8d9374bb1ed665e7ddde3519a
parent1c54eb7ef57f94ec56d86e1747248010369304d8 (diff)
downloadxutil-e8e3d60b8c258bd7604457ad0db0c2017f50af3e.tar.gz
gspell: Exit with correct status
-rwxr-xr-xgspell2
1 files changed, 2 insertions, 0 deletions
diff --git a/gspell b/gspell
index 5edb8e4..e931f3c 100755
--- a/gspell
+++ b/gspell
@@ -12,5 +12,7 @@ fi
spell "$@" > $f
fgrep -Hnof $f "$@" |
awk -F: 'NF > 2 { print $0; prefix = $1 ":" $2 ":"; next } { print prefix $0 }'
+s=$?
rm $f
rm $g 2>/dev/null
+exit $s