diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-16 21:06:42 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-16 21:06:42 +1200 |
commit | 2d14d81e82c12e8d4d52604e9aa9faf917ecb3d9 (patch) | |
tree | 2ab5131ef743ff4ac61c1a88fb6ac83d097f1658 /bin/apf | |
parent | Remove some cruft from apf(1) (diff) | |
download | dotfiles-2d14d81e82c12e8d4d52604e9aa9faf917ecb3d9.tar.gz dotfiles-2d14d81e82c12e8d4d52604e9aa9faf917ecb3d9.zip |
Use regular BASH_VERSINFO check
Diffstat (limited to 'bin/apf')
-rwxr-xr-x | bin/apf | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2,6 +2,9 @@ # Prepend arguments from a file to a command call self=apf +# Give up completely if no BASH_VERSINFO (<2.0) +[ -n "$BASH_VERSINFO" ] || exit + # Require at least two arguments, give usage otherwise if (($# < 2)) ; then printf >&2 '%s: Need an arguments file and a command\n' "$self" |