aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-11 00:02:02 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-11 00:02:02 +1300
commit32efe32150bce5bd7c6abe5c64494a9e15047a19 (patch)
tree373894845a6b1e1c5a10caf1d8fd15fc81a3c368
parentGolf/refactor drakon(1df) a bit (diff)
downloaddotfiles-32efe32150bce5bd7c6abe5c64494a9e15047a19.tar.gz
dotfiles-32efe32150bce5bd7c6abe5c64494a9e15047a19.zip
Condense slsf(1df) conditions a bit
-rw-r--r--bin/slsf.awk3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/slsf.awk b/bin/slsf.awk
index 9d12225d..3d5c190f 100644
--- a/bin/slsf.awk
+++ b/bin/slsf.awk
@@ -6,5 +6,4 @@ FNR == 1 || /### sls/ { sls = 1 }
# If processing flag set, directive is "Host", and hostname has no wildcards,
# then print it
-!sls { next }
-$1 == "Host" && $2 !~ /\*/ { print $2 }
+sls && $1 == "Host" && $2 !~ /\*/ { print $2 }