aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-16 20:51:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-16 20:51:24 +1200
commitdc28ed603b643be33a8ca13336f995e14c1f36f7 (patch)
tree0500d5bc3779d1af3260163a6e0dbd672fa60e4a /bin
parentAdd a comment to the top of rfct(1) (diff)
downloaddotfiles-dc28ed603b643be33a8ca13336f995e14c1f36f7.tar.gz
dotfiles-dc28ed603b643be33a8ca13336f995e14c1f36f7.zip
Change stderr redirections for consistency
Diffstat (limited to 'bin')
-rwxr-xr-xbin/apf3
-rwxr-xr-xbin/plmu2
2 files changed, 2 insertions, 3 deletions
diff --git a/bin/apf b/bin/apf
index 06f7aa6b..7ec7611a 100755
--- a/bin/apf
+++ b/bin/apf
@@ -4,8 +4,7 @@ self=apf
# Require at least two arguments, give usage otherwise
if (($# < 2)) ; then
- printf '%s: usage: %s ARGFILE COMMAND [ARGS...]\n' \
- "$self" "$self" >&2
+ printf >&2 '%s: Need an arguments file and a command\n' "$self"
exit 2
fi
diff --git a/bin/plmu b/bin/plmu
index b753a59a..cf9b7eae 100755
--- a/bin/plmu
+++ b/bin/plmu
@@ -6,7 +6,7 @@ ef=$HOME/.plenv/non-cpanm-modules
# Check that exceptions file is sorted
if ! sort -c -- "$ef" ; then
- printf '%s not sorted\n' "$ef" >&2
+ printf >&2 '%s not sorted\n' "$ef"
exit 1
fi