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
|
||||
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}\""
|
||||
|
Loading…
Reference in New Issue
Block a user