Fix handling of bz2

This commit is contained in:
Julian Ospald 2020-01-26 15:52:18 +01:00
parent 91334cd515
commit 46441d00fc
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

4
ghcup
View File

@ -1070,6 +1070,10 @@ unpack() {
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!"
;; ;;
bz2)
debug_message "bzip2 -cd \"${filename}\" | tar -xf -"
( bzip2 -cd "${filename}" | tar xf - ; ) || die "unpacking failed!"
;;
tar) tar)
edo tar xf "${filename}" edo tar xf "${filename}"
;; ;;