Skip to content

Commit

Permalink
build(go): 🐛 correct sudo usage 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed May 26, 2024
1 parent 2b637dc commit 9baedca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/magefiles/preps.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ func (Preps) Deps(arch string) error {
var cmd string
var args []string
if isRoot() {
cmd = "sudo"
args = []string{script, arch}
} else {
cmd = script
args = []string{arch}
} else {
cmd = "sudo"
args = []string{script, arch}
}
if err := sh.RunV(cmd, args...); err != nil {
return err
Expand Down

0 comments on commit 9baedca

Please sign in to comment.