Revert "Ignore commented lines when reading PRIVACYLEVEL from config file"

This commit is contained in:
Adam Warner
2023-03-22 21:52:39 +00:00
committed by GitHub
parent fb032ea6e7
commit 58275ecd13
3 changed files with 3 additions and 38 deletions
+1 -2
View File
@@ -2612,8 +2612,7 @@ main() {
# Get the privacy level if it exists (default is 0)
if [[ -f "${FTL_CONFIG_FILE}" ]]; then
# use getVal from utils.sh to get PRIVACYLEVEL
PRIVACY_LEVEL=$(getVal "${FTL_CONFIG_FILE}" "PRIVACYLEVEL")
PRIVACY_LEVEL=$(sed -ne 's/PRIVACYLEVEL=\(.*\)/\1/p' "${FTL_CONFIG_FILE}")
# If no setting was found, default to 0
PRIVACY_LEVEL="${PRIVACY_LEVEL:-0}"