Use command literal for extraction

This commit is contained in:
syeopite 2021-10-02 05:52:42 -07:00
parent 67b01506c9
commit 9be8263f26
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82

View file

@ -99,9 +99,8 @@ dependencies_to_install.each do |dep|
# Unless we install an external dependency, crystal provides no way of extracting a tarball. # Unless we install an external dependency, crystal provides no way of extracting a tarball.
# Thus we'll go ahead and call a system command. # Thus we'll go ahead and call a system command.
args = Process.parse_arguments("-zxvf '#{download_path}/package.tgz' -C '#{download_path}'") `tar -zxf '#{download_path}/package.tgz' -C '#{download_path}'"`
process = Process.new("tar", args: args) raise "Extraction for #{dep} failed" if !$?.success?
process.wait.success? # => true
# Would use File.rename in the following steps but for some reason it just doesn't work here. # Would use File.rename in the following steps but for some reason it just doesn't work here.
# Video.js itself is structured slightly differently # Video.js itself is structured slightly differently