Fix gzip error for non-gzip archives

This commit is contained in:
the Sane 2021-09-18 15:27:51 -04:00 committed by GitHub
parent 05d75ec82f
commit b701ea5e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -883,7 +883,7 @@ runner_install() {
# Get the path of the first item listed in the archive # Get the path of the first item listed in the archive
# This should either be a subdirectory or the path ./ # This should either be a subdirectory or the path ./
# depending on how the archive was created # depending on how the archive was created
first_filepath="$(stdbuf -oL tar -tzf "$tmp_dir/$runner_file" | head -n 1)" first_filepath="$(stdbuf -oL tar -tf "$tmp_dir/$runner_file" | head -n 1)"
# Extract the runner # Extract the runner
case "$first_filepath" in case "$first_filepath" in