summaryrefslogtreecommitdiffstats
path: root/pkg/updates/updates.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/updates/updates.go')
-rw-r--r--pkg/updates/updates.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go
index cb5a64788..b6d0f2734 100644
--- a/pkg/updates/updates.go
+++ b/pkg/updates/updates.go
@@ -300,7 +300,8 @@ func (u *Updater) downloadAndInstall(rawUrl string) error {
}
u.Log.Info("untarring tarball/unzipping zip file")
- if err := u.OSCommand.RunCommand("tar -zxf %s %s", u.OSCommand.Quote(zipPath), "lazygit"); err != nil {
+ cmdObj := u.OSCommand.NewCmdObj(fmt.Sprintf("tar -zxf %s %s", u.OSCommand.Quote(zipPath), "lazygit"))
+ if err := u.OSCommand.Run(cmdObj); err != nil {
return err
}