unpackFile: ignore timestamp warnings

This commit is contained in:
milahu 2021-09-09 20:13:21 +02:00 committed by GitHub
parent 2e04b29a17
commit 5e2f703e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -832,12 +832,12 @@ _defaultUnpack() {
case "$fn" in
*.tar.xz | *.tar.lzma | *.txz)
# Don't rely on tar knowing about .xz.
xz -d < "$fn" | tar xf -
xz -d < "$fn" | tar xf - --warning=no-timestamp
;;
*.tar | *.tar.* | *.tgz | *.tbz2 | *.tbz)
# GNU tar can automatically select the decompression method
# (info "(tar) gzip").
tar xf "$fn"
tar xf "$fn" --warning=no-timestamp
;;
*)
return 1