file_rewriter - копирование атрибутов

This commit is contained in:
Artem Bliznetsov 2024-03-08 15:22:29 +03:00
parent 80f83ab966
commit 49e47e6858

View File

@ -11,7 +11,7 @@ _rewrite_file () {
trap '' SIGINT
TMP_PATH=${1}_${FILE_TMP_SUFFIX}
ORIG_PATH=$1
cp $ORIG_PATH $TMP_PATH
cp -p $ORIG_PATH $TMP_PATH
mv -f $TMP_PATH $ORIG_PATH
trap - SIGINT
return 0