Skip to content
Snippets Groups Projects
Verified Commit db9463a7 authored by Julian Ospald's avatar Julian Ospald :tea:
Browse files

Merge remote-tracking branch 'origin/merge-requests/119'

parents c3c11ef5 d2892396
No related branches found
No related tags found
1 merge request!119Darwin xz flag fix
......@@ -1038,19 +1038,19 @@ unpack() {
case "${file_ext}" in
xz)
if test "${mydistro}" = "darwin"; then
debug_message "tar -xzf \"${filename}\""
( tar -xzf "${filename}" ) || die "unpacking failed!"
debug_message "tar xf \"${filename}\""
( 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}\""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment