TT#50100 scripts/patch: preserve file permissions when creating customtt

Change-Id: Ibc54b3c563d53f9fa60644d882e4633695b01e29
changes/47/26147/1
Andrew Pogrebennyk 7 years ago
parent 183fc513c7
commit 180e591d60

@ -142,6 +142,10 @@ patch_apply() {
bad_files+=("${patch}") bad_files+=("${patch}")
fi fi
if [[ -f "${template}" && -f "${customtt}" ]] ; then
chmod --reference="${template}" "${customtt}"
chown --reference="${template}" "${customtt}"
fi
rm -f "${patch_output}" rm -f "${patch_output}"
} }

Loading…
Cancel
Save