aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-16 14:15:45 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-16 14:15:45 +1300
commit08c5dec9b628088a00fc4b5d1a21a3767ce2ba9f (patch)
tree97dae39546157512acb2e05c17612f2a66849a45 /bin
parentDitch Awk version of shoal(1) for pure Bash (diff)
downloaddotfiles-08c5dec9b628088a00fc4b5d1a21a3767ce2ba9f.tar.gz
dotfiles-08c5dec9b628088a00fc4b5d1a21a3767ce2ba9f.zip
Consistent preambles for binscripts
Diffstat (limited to 'bin')
-rwxr-xr-xbin/shoal4
-rwxr-xr-xbin/shock4
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/shoal b/bin/shoal
index 2eba4a12..d2ecfc95 100755
--- a/bin/shoal
+++ b/bin/shoal
@@ -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"
diff --git a/bin/shock b/bin/shock
index bfdd3ee2..ef71c5d7 100755
--- a/bin/shock
+++ b/bin/shock
@@ -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