Merge remote-tracking branch 'origin/merge-requests/119'
This commit is contained in:
commit
db9463a795
10
ghcup
10
ghcup
@ -1038,19 +1038,19 @@ unpack() {
|
|||||||
case "${file_ext}" in
|
case "${file_ext}" in
|
||||||
xz)
|
xz)
|
||||||
if test "${mydistro}" = "darwin"; then
|
if test "${mydistro}" = "darwin"; then
|
||||||
debug_message "tar -xzf \"${filename}\""
|
debug_message "tar xf \"${filename}\""
|
||||||
( tar -xzf "${filename}" ) || die "unpacking failed!"
|
( tar xf "${filename}" ) || die "unpacking failed!"
|
||||||
else
|
else
|
||||||
debug_message "xz -cd \"${filename}\" | tar -xf -"
|
debug_message "xz -cd \"${filename}\" | tar -xf -"
|
||||||
( xz -cd "${filename}" | tar -xf - ; ) || die "unpacking failed!"
|
( xz -cd "${filename}" | tar xf - ; ) || die "unpacking failed!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
gz)
|
gz)
|
||||||
debug_message "gzip -cd \"${filename}\" | tar -xf -"
|
debug_message "gzip -cd \"${filename}\" | tar -xf -"
|
||||||
( gzip -cd "${filename}" | tar -xf - ; ) || die "unpacking failed!"
|
( gzip -cd "${filename}" | tar xf - ; ) || die "unpacking failed!"
|
||||||
;;
|
;;
|
||||||
tar)
|
tar)
|
||||||
edo tar -xf "${filename}"
|
edo tar xf "${filename}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
die "Unknown file extension: \"${file_ext}\""
|
die "Unknown file extension: \"${file_ext}\""
|
||||||
|
Loading…
Reference in New Issue
Block a user