diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-16 20:51:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-16 20:51:24 +1200 |
commit | dc28ed603b643be33a8ca13336f995e14c1f36f7 (patch) | |
tree | 0500d5bc3779d1af3260163a6e0dbd672fa60e4a /bin | |
parent | Add a comment to the top of rfct(1) (diff) | |
download | dotfiles-dc28ed603b643be33a8ca13336f995e14c1f36f7.tar.gz dotfiles-dc28ed603b643be33a8ca13336f995e14c1f36f7.zip |
Change stderr redirections for consistency
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/apf | 3 | ||||
-rwxr-xr-x | bin/plmu | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -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 @@ -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 |