Fix modification time restoration.

This commit is contained in:
Alexandre Pujol 2018-09-24 12:58:51 +01:00
parent aaa4637ed0
commit 2f3826d88d
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

2
tomb
View File

@ -206,7 +206,7 @@ _restore_stat() {
stats=("${(@s.:.)stat}")
_verbose "Restoring access and modification time for ::1 file::" $file
[[ -z "${stats[1]}" ]] || touch -a --date="@${stats[1]}" "$file"
[[ -z "${stats[2]}" ]] || touch -m --date="@${stats[1]}" "$file"
[[ -z "${stats[2]}" ]] || touch -m --date="@${stats[2]}" "$file"
done
}