Commit 6097cd9e authored by Ander Punnar's avatar Ander Punnar

__apt_unattended_upgrades: use word expansions

parent 6fa0d687
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment