Move ensure_newline() into its own file as we need to source it from different places

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-12-30 21:48:07 +01:00
parent 69e55aff83
commit e1a128f833
3 changed files with 27 additions and 11 deletions

View File

@@ -26,6 +26,9 @@ readonly PI_HOLE_FILES_DIR="/etc/.pihole"
PH_TEST="true"
source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
# ensure_newline()
source "utils.sh"
coltable="/opt/pihole/COL_TABLE"
if [[ -f ${coltable} ]]; then
source ${coltable}