Introduction
Introduction Statistics Contact Development Disclaimer Help
Make the validation valider. - gopher-validator - Gopher validator and happy he…
git clone git://git.codemadness.org/gopher-validator
Log
Files
Refs
README
LICENSE
---
commit 9bd285bfee3888c74667bfa2b7b2f41de27a149c
parent 152b7ffd60ace3f18a6cfd667432437c4e6aa69c
Author: Christoph Lohmann <[email protected]>
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(-)
---
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
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.