Change to bundled-flags arguments for compatibility
Older versions of tar don't understand the `-xf` flags while newer versions understand the "bundled-flags" (as documend in bsdtar's manpage) perfectly. So `tar xf` should maximize compatibility.
This commit is contained in:
parent
9f083c53e9
commit
d28923968f
6
ghcup
6
ghcup
@ -1042,15 +1042,15 @@ unpack() {
|
||||
( tar xf "${filename}" ) || die "unpacking failed!"
|
||||
else
|
||||
debug_message "xz -cd \"${filename}\" | tar -xf -"
|
||||
( xz -cd "${filename}" | tar -xf - ; ) || die "unpacking failed!"
|
||||
( xz -cd "${filename}" | tar xf - ; ) || die "unpacking failed!"
|
||||
fi
|
||||
;;
|
||||
gz)
|
||||
debug_message "gzip -cd \"${filename}\" | tar -xf -"
|
||||
( gzip -cd "${filename}" | tar -xf - ; ) || die "unpacking failed!"
|
||||
( gzip -cd "${filename}" | tar xf - ; ) || die "unpacking failed!"
|
||||
;;
|
||||
tar)
|
||||
edo tar -xf "${filename}"
|
||||
edo tar xf "${filename}"
|
||||
;;
|
||||
*)
|
||||
die "Unknown file extension: \"${file_ext}\""
|
||||
|
Loading…
Reference in New Issue
Block a user