Preserve file permissions when updating copyright notices.

This commit is contained in:
Ioana Stanciu 2023-05-23 16:54:49 +03:00
parent afc46246ca
commit c01a6a4d7e
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ EOF
esac
done
) < "$fn" > "$tf"
chmod --reference="$fn" "$tf"
if cmp -s "$fn" "$tf"; then
echo " unchanged"
rm "$tf"