aboutsummaryrefslogtreecommitdiff
path: root/bin/apf
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-19 16:27:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-19 16:27:07 +1200
commit0d11af4df4b652004af26cb4b0793e0d45d44cfd (patch)
tree718e0f2480f1c3ea6e88f0c32114418c2085e56a /bin/apf
parentAdd a POSIX compatibility issue (diff)
downloaddotfiles-0d11af4df4b652004af26cb4b0793e0d45d44cfd.tar.gz
dotfiles-0d11af4df4b652004af26cb4b0793e0d45d44cfd.zip
Strip trailing whitespace from apf(1)
Diffstat (limited to 'bin/apf')
-rwxr-xr-xbin/apf4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/apf b/bin/apf
index 0a0cbeea..2c37e8f3 100755
--- a/bin/apf
+++ b/bin/apf
@@ -31,11 +31,11 @@ if [ -f "$argf" ] ; then
trap "cleanup $sig" "$sig"
done
td=$(mktd "$self") || exit
-
+
# Write the arguments in reverse to a temporary file
revf=$td/revf
sed '1!G;$!{h;d}' "$argf" > "$revf" || exit
-
+
# Stack up all the arguments from the file. Skip blank lines and comments.
# An empty file is also fine.
while IFS= read -r arg ; do