aboutsummaryrefslogtreecommitdiff
path: root/bin/gwp.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-05 20:42:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-05 20:42:20 +1300
commit1ffb4b6811c3cff59b0acaed0e9e2aabe3291b3b (patch)
tree25245f00dce0e694c4b188d1a650a662ad496dec /bin/gwp.awk
parentSlightly more idiomatic awk (diff)
downloaddotfiles-1ffb4b6811c3cff59b0acaed0e9e2aabe3291b3b.tar.gz
dotfiles-1ffb4b6811c3cff59b0acaed0e9e2aabe3291b3b.zip
Use more portable awk stderr write
The fork is a bit ugly, but it's only for printing a single error.
Diffstat (limited to 'bin/gwp.awk')
-rw-r--r--bin/gwp.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gwp.awk b/bin/gwp.awk
index 32fe97f2..976b5b84 100644
--- a/bin/gwp.awk
+++ b/bin/gwp.awk
@@ -23,7 +23,7 @@ BEGIN {
# Bailout function
function fail(str) {
- printf "%s: %s\n", self, str > "/dev/stderr"
+ printf "%s: %s\n", self, str | "cat >&2"
exit(1)
}