1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 12:40:56 +00:00

read without -r will mangle backslashes.

This commit is contained in:
mrmajik45 2018-09-26 10:32:22 -04:00 committed by GitHub
parent 8684356b44
commit 00f98543ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -907,7 +907,7 @@ parse_file() {
#shellcheck disable=SC2016 #shellcheck disable=SC2016
IFS=$'\r\n' command eval 'file_info=( $(cat "${filename}") )' IFS=$'\r\n' command eval 'file_info=( $(cat "${filename}") )'
else else
read -a file_info <<< $filename read -a -r file_info <<< $filename
fi fi
# Set a named variable for better readability # Set a named variable for better readability
local file_lines local file_lines