summaryrefslogtreecommitdiff
path: root/update-openssh-known-hosts
diff options
context:
space:
mode:
Diffstat (limited to 'update-openssh-known-hosts')
-rwxr-xr-xupdate-openssh-known-hosts6
1 files changed, 3 insertions, 3 deletions
diff --git a/update-openssh-known-hosts b/update-openssh-known-hosts
index 325a997..9eee3ec 100755
--- a/update-openssh-known-hosts
+++ b/update-openssh-known-hosts
@@ -99,7 +99,7 @@ cd "${CACHEDIR}"
find -mindepth 2 -maxdepth 2 -type f -name new -delete
-run-parts --list "${CONFDIR}/sources/" | while read sourcefile; do
+run-parts --list "${CONFDIR}/sources/" | while read -r sourcefile; do
source=${sourcefile##*/}
mkdir -p "${source}"
download_source "${source}" "${sourcefile}"
@@ -115,8 +115,8 @@ run-parts --list "${CONFDIR}/sources/" | while read sourcefile; do
unset filter[$i]
fi
done
- while read hostlist rest; do
- IFS=, read -a hostarray <<<"$hostlist"
+ while read -r hostlist rest; do
+ IFS=, read -ra hostarray <<<"$hostlist"
new_hostlist=''
for host in "${hostarray[@]}"; do
for rule in "${filter[@]}"; do