This is likely a slightly better solution for .rar support than #146. The main difference is that this first attempts to utilize the 7z command, which has likely been installed by the user as part of the listed 7-Zip dependency. It will also continue trying the other methods, instead of stopping at the first failure.
This change attempts to extract .rar files in this order:
The 7z command
The unrar command
The original bit7z method.
On my system, the 7z command was able to extract the .rar test files I have without issue, but this support may depend on what version of 7z users install.
This is likely a slightly better solution for
.rar
support than #146. The main difference is that this first attempts to utilize the7z
command, which has likely been installed by the user as part of the listed7-Zip
dependency. It will also continue trying the other methods, instead of stopping at the first failure.This change attempts to extract
.rar
files in this order:7z
commandunrar
commandbit7z
method.On my system, the
7z
command was able to extract the.rar
test files I have without issue, but this support may depend on what version of7z
users install.