summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2021-10-02 05:52:42 -0700
committersyeopite <syeopite@syeopite.dev>2021-10-02 05:52:42 -0700
commit9be8263f2681f97c4e2bbf1fc661e120bce07728 (patch)
treef3eda059fcd3a04d7edbd9fbe049f0d28639ff2b /scripts
parent67b01506c9429e7e0f8b5d081b6eaaf2c5fa5202 (diff)
downloadinvidious-9be8263f2681f97c4e2bbf1fc661e120bce07728.tar.gz
invidious-9be8263f2681f97c4e2bbf1fc661e120bce07728.tar.bz2
invidious-9be8263f2681f97c4e2bbf1fc661e120bce07728.zip
Use command literal for extraction
Diffstat (limited to 'scripts')
-rw-r--r--scripts/fetch-player-dependencies.cr5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/fetch-player-dependencies.cr b/scripts/fetch-player-dependencies.cr
index ba4c97aa..c141d80a 100644
--- a/scripts/fetch-player-dependencies.cr
+++ b/scripts/fetch-player-dependencies.cr
@@ -99,9 +99,8 @@ dependencies_to_install.each do |dep|
# Unless we install an external dependency, crystal provides no way of extracting a tarball.
# Thus we'll go ahead and call a system command.
- args = Process.parse_arguments("-zxvf '#{download_path}/package.tgz' -C '#{download_path}'")
- process = Process.new("tar", args: args)
- process.wait.success? # => true
+ `tar -zxf '#{download_path}/package.tgz' -C '#{download_path}'"`
+ raise "Extraction for #{dep} failed" if !$?.success?
# 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