Skip to content

Commit

Permalink
test with tar command instead of gtar
Browse files Browse the repository at this point in the history
Signed-off-by: muthuja <[email protected]>
  • Loading branch information
muthuja committed Feb 24, 2025
1 parent 436b52d commit 6b58a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/omnibus/fetchers/net_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def extract
compression_switch = "z" if downloaded_file.end_with?("gz")
compression_switch = "--lzma -" if downloaded_file.end_with?("lzma")
compression_switch = "j" if downloaded_file.end_with?("bz2")
compression_switch = "J" if downloaded_file.end_with?("xz")
#compression_switch = "J" if downloaded_file.end_with?("xz")

if Ohai["platform"] == "windows"
if downloaded_file.end_with?(*TAR_EXTENSIONS) && source[:extract] != :seven_zip
Expand Down Expand Up @@ -322,7 +322,7 @@ def extract_command; end
# @return [String]
#
def tar
Omnibus.which("gtar") ? "gtar" : "tar"
Omnibus.which("gtar") ? "tar" : "tar"
end
end
end

0 comments on commit 6b58a7b

Please sign in to comment.