From d30b6a744d9de88bde1a5d4cddf873c867f5c3d2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 13 Nov 2017 22:26:07 +1300 Subject: Strip trailing whitespace --- bin/gwp.awk | 2 +- bin/onl.awk | 2 +- bin/osc.sh | 4 ++-- bin/sqs.sh | 2 +- bin/unf.awk | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/gwp.awk b/bin/gwp.awk index 6b558388..60013add 100644 --- a/bin/gwp.awk +++ b/bin/gwp.awk @@ -1,6 +1,6 @@ # Search for alphanumeric words in a file BEGIN { - + # Name self self = "gwp" diff --git a/bin/onl.awk b/bin/onl.awk index 89469f3c..30f7e594 100644 --- a/bin/onl.awk +++ b/bin/onl.awk @@ -1,7 +1,7 @@ # Flatten input into one single-space separated line with no unprintable chars # For each line of input ... -{ +{ # Replace groups of spaces and control characters with one space, # implicitly re-splitting the fields gsub(/[\a\b\f\n\r\t\v ]+/, " ") diff --git a/bin/osc.sh b/bin/osc.sh index 47d62089..86923f12 100644 --- a/bin/osc.sh +++ b/bin/osc.sh @@ -1,5 +1,5 @@ # Sane and safe OpenSSL s_client(1ssl) connection -self=osc +self=osc # Check we have openssl(1); we need to fail early lest we go setting up FIFOs # needlessly @@ -67,7 +67,7 @@ for sig in EXIT HUP INT TERM ; do # shellcheck disable=SC2064 trap "cleanup $sig" "$sig" done - + # Create a temporary directory and a FIFO in it td=$(mktd "$self") || exit mkfifo -- "$td"/verify-filter || exit diff --git a/bin/sqs.sh b/bin/sqs.sh index e00797e3..28435059 100644 --- a/bin/sqs.sh +++ b/bin/sqs.sh @@ -13,7 +13,7 @@ for sn ; do # Strip trailing slash if any and then query string sn=${sn%/} dn=${sn%%\?*} - + # Ignore this file if its name wouldn't change [ "$sn" != "$dn" ] || continue diff --git a/bin/unf.awk b/bin/unf.awk index 7acb09c2..57f5f0cf 100644 --- a/bin/unf.awk +++ b/bin/unf.awk @@ -11,7 +11,7 @@ function wrbuf() { # Flag to stop processing once we hit the first blank line !length($0) { - wrbuf() + wrbuf() body = 1 } body { -- cgit v1.2.3