Make the validation valider. - gopher-validator - Gopher validator and happy helper (HTM) git clone git://git.codemadness.org/gopher-validator (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 9bd285bfee3888c74667bfa2b7b2f41de27a149c (DIR) parent 152b7ffd60ace3f18a6cfd667432437c4e6aa69c (HTM) Author: Christoph Lohmann <20h@r-36.net> Date: Fri, 10 Aug 2018 14:54:54 +0200 Make the validation valider. Diffstat: M gopher-validator | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- (DIR) diff --git a/gopher-validator b/gopher-validator @@ -1,9 +1,10 @@ #!/bin/sh +# +# See the LICENSE for licensing details. +# -result="$(sacc "$@" | grep "^!")" +result="$(sacc "$@" | grep "^!")" || printf "valid\n" || exit 0 -[ -z "$result" ] && printf "valid\n" && exit 0 - -printf "invalid\n" +printf "Errors found\n%s\n" "${result}" exit 1