diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-16 14:15:45 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-16 14:15:45 +1300 |
commit | 08c5dec9b628088a00fc4b5d1a21a3767ce2ba9f (patch) | |
tree | 97dae39546157512acb2e05c17612f2a66849a45 /bin | |
parent | Ditch Awk version of shoal(1) for pure Bash (diff) | |
download | dotfiles-08c5dec9b628088a00fc4b5d1a21a3767ce2ba9f.tar.gz dotfiles-08c5dec9b628088a00fc4b5d1a21a3767ce2ba9f.zip |
Consistent preambles for binscripts
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/shoal | 4 | ||||
-rwxr-xr-x | bin/shock | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -8,6 +8,10 @@ # Copyright: 2014 # License: Public domain # + +# Name self +self=shoal + while read -r option value _ ; do if [[ $option == 'Host' && $value != *[^[:alnum:]_-]* ]] ; then printf '%s\n' "$value" @@ -5,6 +5,10 @@ # the hostname if the command's return value was zero. Discard stdout, but do # print stderr. # +# Author: Tom Ryder <tom@sanctum.geek.nz> +# Copyright: 2014 +# License: Public domain +# # Name self self=shock |