Skip to content

Commit 9be8263

Browse files
committed
Use command literal for extraction
1 parent 67b0150 commit 9be8263

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/fetch-player-dependencies.cr

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ dependencies_to_install.each do |dep|
9999

100100
# Unless we install an external dependency, crystal provides no way of extracting a tarball.
101101
# Thus we'll go ahead and call a system command.
102-
args = Process.parse_arguments("-zxvf '#{download_path}/package.tgz' -C '#{download_path}'")
103-
process = Process.new("tar", args: args)
104-
process.wait.success? # => true
102+
`tar -zxf '#{download_path}/package.tgz' -C '#{download_path}'"`
103+
raise "Extraction for #{dep} failed" if !$?.success?
105104

106105
# Would use File.rename in the following steps but for some reason it just doesn't work here.
107106
# Video.js itself is structured slightly differently

0 commit comments

Comments
 (0)