mirror of
https://github.com/armbian/build.git
synced 2026-05-04 19:56:11 +02:00
Preserve timestamps when copying log files
Add timestamp preservation when copying log files.
This commit is contained in:
parent
794cc8fb3a
commit
d5182b43bf
@ -152,8 +152,9 @@ case "$1" in
|
||||
cd $HDD_LOG
|
||||
find . -type f -print | grep -E -v "(\.gz|\.xz|\.[0-9]|armbian-ramlog)|\.journal" | while IFS= read -r file
|
||||
do
|
||||
dest="/var/log/$file"
|
||||
cat $file > $dest
|
||||
dest="/var/log/$file"
|
||||
cat $file > $dest
|
||||
touch -r $file $dest
|
||||
done
|
||||
;;
|
||||
*)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user