diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-11 00:02:02 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-11 00:02:02 +1300 |
commit | 32efe32150bce5bd7c6abe5c64494a9e15047a19 (patch) | |
tree | 373894845a6b1e1c5a10caf1d8fd15fc81a3c368 /bin/slsf.awk | |
parent | Golf/refactor drakon(1df) a bit (diff) | |
download | dotfiles-32efe32150bce5bd7c6abe5c64494a9e15047a19.tar.gz dotfiles-32efe32150bce5bd7c6abe5c64494a9e15047a19.zip |
Condense slsf(1df) conditions a bit
Diffstat (limited to 'bin/slsf.awk')
-rw-r--r-- | bin/slsf.awk | 3 |
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 } |