aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-13 22:26:07 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-13 22:26:07 +1300
commitd30b6a744d9de88bde1a5d4cddf873c867f5c3d2 (patch)
tree9aee0daea29566a6d28706dcb8f4ac390536e6c5 /bin
parent7ec9cf731f8e81987a333c544b946c1806ea27bc (diff)
downloaddotfiles-d30b6a744d9de88bde1a5d4cddf873c867f5c3d2.tar.gz
dotfiles-d30b6a744d9de88bde1a5d4cddf873c867f5c3d2.zip
Strip trailing whitespace
Diffstat (limited to 'bin')
-rw-r--r--bin/gwp.awk2
-rw-r--r--bin/onl.awk2
-rw-r--r--bin/osc.sh4
-rw-r--r--bin/sqs.sh2
-rw-r--r--bin/unf.awk2
5 files changed, 6 insertions, 6 deletions
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 {