From e8e3d60b8c258bd7604457ad0db0c2017f50af3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 20 Jun 2021 12:12:44 +0200 Subject: gspell: Exit with correct status --- gspell | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3