Skip to content

Commit

Permalink
Add support to tar.xz and txz
Browse files Browse the repository at this point in the history
  • Loading branch information
kongkaikai committed May 9, 2022
1 parent 5787125 commit afb5c3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/RepoToolsCore/RepoActions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ public enum RepoActions {
lowercasedFileName.hasSuffix("tar")
|| lowercasedFileName.hasSuffix("tar.gz")
|| lowercasedFileName.hasSuffix("tgz")
|| lowercasedFileName.hasSuffix("txz") // txz is a txz extension
|| lowercasedFileName.hasSuffix("tar.xz") // tar.xz is a txz extension
{
return shell.command(CommandBinary.sh, arguments: [
"-c",
Expand All @@ -592,7 +594,7 @@ public enum RepoActions {
assertCommandOutput(extract(), message: "Extraction of \(podName) failed")

// Save artifacts to cache root
let export = shell.command("/bin/sh", arguments: [
let export = shell.command(CommandBinary.sh, arguments: [
"-c",
"mkdir -p " + extractDir + " && " +
"cd " + extractDir + " && " +
Expand Down

0 comments on commit afb5c3b

Please sign in to comment.