diff --git a/scripts/patch b/scripts/patch index 023b320d..31c17281 100755 --- a/scripts/patch +++ b/scripts/patch @@ -142,6 +142,10 @@ patch_apply() { bad_files+=("${patch}") fi + if [[ -f "${template}" && -f "${customtt}" ]] ; then + chmod --reference="${template}" "${customtt}" + chown --reference="${template}" "${customtt}" + fi rm -f "${patch_output}" }