__apt_unattended_upgrades: use word expansions

This commit is contained in:
ander 2020-01-17 14:41:00 +02:00
parent 6fa0d687f7
commit 6097cd9e90

View file

@ -47,9 +47,7 @@ then
while read -r l
do
k="$( echo "$l" | awk -F= '{print $1}' )"
v="$( echo "$l" | awk -F= '{print $2}' )"
o="$( printf '%s\nUnattended-Upgrade::%s "%s";\n' "$o" "$k" "$v" )"
o="$( printf '%s\nUnattended-Upgrade::%s "%s";\n' "$o" "${l%%=*}" "${l#*=}" )"
done \
< "$__object/parameter/option"