postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.89k stars 250 forks source link

Use xzcat for tar implementations that don't do -J #427

Closed jmettraux closed 2 years ago

jmettraux commented 2 years ago

OpenBSD as of 7.1 doesn't do tar -xJf.

This pull request uses xzcat "$archive" | tar -xf - -C "$dest" for *.txz and *.tar.xz.

xzcat seems available on Ubuntu/Debian and OSX. I haven't looked at other platforms.

Thanks a lot for ruby-install !