mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-23 21:09:48 +00:00
parse array in correct location
This commit is contained in:
parent
24aa72c19d
commit
048eacd305
1 changed files with 3 additions and 3 deletions
|
@ -695,6 +695,9 @@ make_array_from_file() {
|
||||||
:
|
:
|
||||||
fi
|
fi
|
||||||
done < "${filename}"
|
done < "${filename}"
|
||||||
|
for each_line in "${file_content[@]}"; do
|
||||||
|
log_write " ${each_line}"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -765,9 +768,6 @@ list_files_in_dir() {
|
||||||
log_write "\n${COL_LIGHT_GREEN}$(ls -ld ${dir_to_parse}/${each_file})${COL_NC}"
|
log_write "\n${COL_LIGHT_GREEN}$(ls -ld ${dir_to_parse}/${each_file})${COL_NC}"
|
||||||
# Then, parse the file's content into an array so each line can be analyzed if need be
|
# Then, parse the file's content into an array so each line can be analyzed if need be
|
||||||
make_array_from_file "${dir_to_parse}/${each_file}"
|
make_array_from_file "${dir_to_parse}/${each_file}"
|
||||||
for each_line in "${file_content[@]}"; do
|
|
||||||
log_write " ${each_line}"
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue