Darwin xz flag fix
1 unresolved thread
1 unresolved thread
The gzip flag z
was being passed to tar on Mac OS for decompression of xz archives. This fixes #119 (closed).
I took the liberty to include a commit that drops dashes from the flags passed to tar for other cases, rationale being it only increases compatibility. If anyone objects I can easily drop or revert that commit.
Edited by toonn
Merge request reports
Activity
Filter activity
1041 debug_message "tar xf \"${filename}\"" 1042 ( tar xf "${filename}" ) || die "unpacking failed!" 1043 1043 else 1044 1044 debug_message "xz -cd \"${filename}\" | tar -xf -" 1045 ( xz -cd "${filename}" | tar -xf - ; ) || die "unpacking failed!" 1045 ( xz -cd "${filename}" | tar xf - ; ) || die "unpacking failed!" 1046 1046 fi 1047 1047 ;; 1048 1048 gz) 1049 1049 debug_message "gzip -cd \"${filename}\" | tar -xf -" 1050 ( gzip -cd "${filename}" | tar -xf - ; ) || die "unpacking failed!" 1050 ( gzip -cd "${filename}" | tar xf - ; ) || die "unpacking failed!" 1051 1051 ;; 1052 1052 tar) 1053 edo tar -xf "${filename}" 1053 edo tar xf "${filename}" This is good. https://pubs.opengroup.org/onlinepubs/007908799/xcu/tar.html ghcup is POSIX sh and POSIX doesn't specify leading dash afais.
mentioned in issue #119 (closed)
Please register or sign in to reply