aboutsummaryrefslogtreecommitdiff
path: root/bin/shoal
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/shoal
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/shoal')
-rwxr-xr-xbin/shoal4
1 files changed, 4 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"