Fix wordsplitting error found by shellcheck

SC2231: Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
This commit is contained in:
rallytime 2018-07-09 11:23:18 -04:00
parent 99fcb4dc26
commit bd1d4ad8bd
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -6440,7 +6440,7 @@ preseed_master() {
SEED_DEST="$_PKI_DIR/master/minions"
[ -d "$SEED_DEST" ] || (mkdir -p "$SEED_DEST" && chmod 700 "$SEED_DEST") || return 1
for keyfile in $_TEMP_KEYS_DIR/*; do
for keyfile in "$_TEMP_KEYS_DIR"/*; do
keyfile=$(basename "${keyfile}")
src_keyfile="${_TEMP_KEYS_DIR}/${keyfile}"
dst_keyfile="${SEED_DEST}/${keyfile}"