diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-01-31 14:08:02 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-01-31 14:08:02 +0100 |
commit | 28c7451ac05094b19f041b91d7d8b3cb8027ba15 (patch) | |
tree | dd85199a81a8f340a47ae613dc12a58631c5f122 | |
parent | c02f293a092e7f1f6261cea491e04950b384de61 (diff) | |
download | itzks-systems-28c7451ac05094b19f041b91d7d8b3cb8027ba15.tar.gz itzks-systems-28c7451ac05094b19f041b91d7d8b3cb8027ba15.tar.bz2 itzks-systems-28c7451ac05094b19f041b91d7d8b3cb8027ba15.zip |
sbin/itzks-puppetserver-detect-broken-hosts: Some more shell syntax pedantics (curly braces, quotes).
-rwxr-xr-x | sbin/itzks-puppetserver-detect-broken-hosts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/itzks-puppetserver-detect-broken-hosts b/sbin/itzks-puppetserver-detect-broken-hosts index a632c52..3fd4a27 100755 --- a/sbin/itzks-puppetserver-detect-broken-hosts +++ b/sbin/itzks-puppetserver-detect-broken-hosts @@ -83,10 +83,10 @@ for ip in ${iplist_with_puppeterrors}; do continue fi - if [[ -n "$fqdn" ]]; then - echo -e "$fqdn\t-\t$ip" + if [[ -n "${fqdn}" ]]; then + echo -e "${fqdn}\t-\t${ip}" else - echo -e "(unknown)\t-\t$ip" + echo -e "(unknown)\t-\t${ip}" fi done |