Make the validation valider. - gopher-validator - Simple gopher menu validator. HTML git clone git://bitreich.org/gopher-validator git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-validator DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 9bd285bfee3888c74667bfa2b7b2f41de27a149c DIR parent 152b7ffd60ace3f18a6cfd667432437c4e6aa69c HTML 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