Skip to content

Commit

Permalink
Merge pull request #13 from carapace-sh/use-tar
Browse files Browse the repository at this point in the history
install: use tar to extract zip
  • Loading branch information
rsteube authored Dec 7, 2024
2 parents 84c3df4 + 158f891 commit 8c08343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (c config) extract(source string, out io.Writer) error {
command.Stderr = c.progress
return command.Run()
case strings.HasSuffix(source, ".zip"):
command := exec.Command("unzip", "-p", source, c.binary)
command := exec.Command("tar", "--to-stdout", "-xvf", source, c.binary)
command.Stdout = out
command.Stderr = c.progress
return command.Run()
Expand Down

0 comments on commit 8c08343

Please sign in to comment.