permssion-hardening: Do not skip config file lines without trailing newline (ancient bash bug)

This commit is contained in:
Kuri Schlarb
2022-06-07 08:18:05 +00:00
committed by GitHub
parent 3910e4ee15
commit 2bdda9d0a0

View File

@ -235,7 +235,7 @@ add_nosuid_statoverride_entry() {
set_file_perms() {
echo "INFO: START parsing config_file: '$config_file'"
local line
while read -r line; do
while read -r line || [[ -n "${line}" ]]; do
if [ "$line" = "" ]; then
continue
fi