__apt_unattended_upgrades: use word expansions

remotes/origin/new-type/network-interface
Ander Punnar 5 years ago
parent 6fa0d687f7
commit 6097cd9e90
  1. 4
      cdist/conf/type/__apt_unattended_upgrades/manifest

@ -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"

Loading…
Cancel
Save