Improve OS detection
Merge request reports
Activity
577 595 # shellcheck disable=SC1091 578 596 . /etc/lsb-release 579 597 printf "%s" "$DISTRIB_RELEASE" 598 elif [ -f /etc/redhat-release ]; then 599 case "$(cat /etc/redhat-release)" in 600 # NB: Older CentOS releases didn't have a /etc/centos-release file 601 "CentOS release "*|"Fedora release "*) 602 printf "%s" "$(awk 'NR==1 { split($3, a, "."); print a[1] }' /etc/redhat-release)" I also noticed we use a lot of
.tar.xz
577 595 # shellcheck disable=SC1091 578 596 . /etc/lsb-release 579 597 printf "%s" "$DISTRIB_RELEASE" 598 elif [ -f /etc/redhat-release ]; then 599 case "$(cat /etc/redhat-release)" in 600 # NB: Older CentOS releases didn't have a /etc/centos-release file 601 "CentOS release "*|"Fedora release "*) 602 printf "%s" "$(awk 'NR==1 { split($3, a, "."); print a[1] }' /etc/redhat-release)" I also noticed we use a lot of
.tar.xz
Well, it took a very long time to have all major Linux distros have
.xz
support out of the box... and I'm not willing to go back to.bz2
or.gz
for bindists after we've finally standardised on.xz
for cabal & ghc distributions... and this for the sake of future digital archaeologists... ;-)What I miss from that article is a concrete suggestion what to use as alternative (without sacrificing compression ratio); or is it simply to go back to using the original version-1
.lzma
stream format?or is it simply to go back to using the original version-1
.lzma
stream format?Pretty much. But even
.gz
or.bz2
is better.Well, it took a very long time to have all major Linux distros have
.xz
support out of the box... and I'm not willing to go back to.bz2
or.gz
for bindists after we've finally standardised on.xz
for cabal & ghc distributions... and this for the sake of future digital archaeologists... ;-)But it's unreliable...