From 9a5080d7be55b97ca61eda28327796c682db63dc Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 13 Nov 2025 13:36:23 +0200 Subject: Add "set -e" to all tools --- tools/each | 2 ++ tools/filter | 2 ++ tools/map | 2 ++ tools/reduce | 2 ++ tools/splitat | 2 ++ tools/words | 2 ++ 6 files changed, 12 insertions(+) (limited to 'tools') diff --git a/tools/each b/tools/each index da5ce84..e27ab49 100755 --- a/tools/each +++ b/tools/each @@ -1,5 +1,7 @@ #!/bin/sh +set -e + if [ -z "$1" ]; then echo "Usage: $0 " echo "" diff --git a/tools/filter b/tools/filter index 94258d0..1c927be 100755 --- a/tools/filter +++ b/tools/filter @@ -1,5 +1,7 @@ #!/bin/sh +set -e + if [ -z "$1" ]; then echo "Usage: $0 " echo "" diff --git a/tools/map b/tools/map index 8c4e5ef..2862a62 100755 --- a/tools/map +++ b/tools/map @@ -1,5 +1,7 @@ #!/bin/sh +set -e + if [ -z "$1" ]; then echo "Usage: $0 " echo "" diff --git a/tools/reduce b/tools/reduce index effb98d..c88b0ba 100755 --- a/tools/reduce +++ b/tools/reduce @@ -1,5 +1,7 @@ #!/bin/sh +set -e + if [ "$#" -ne 2 ]; then echo "Usage: $0 " echo "" diff --git a/tools/splitat b/tools/splitat index d41521e..4ca3ebd 100755 --- a/tools/splitat +++ b/tools/splitat @@ -1,5 +1,7 @@ #!/bin/sh +set -e + if [ "$#" -ne 1 ]; then echo "Usage: $0 " echo "" diff --git a/tools/words b/tools/words index ac76d0d..045c454 100755 --- a/tools/words +++ b/tools/words @@ -1,5 +1,7 @@ #!/bin/sh +set -e + if [ "$#" -ne 0 ]; then echo "Usage: $0" echo "" -- cgit v1.3