diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-12-21 09:37:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-02-08 14:40:30 -0800 |
commit | 09f32d4f845511638ec162be426eeffb51036b6b (patch) | |
tree | 1f628ef91273e37da8bc5f4d901f1a91ba865fa6 /scripts/push_new_patch | |
parent | 6f0f70bd924b444a5f755046c1da25c0f31e352e (diff) |
add secureexec file for getting around windows checking for a binary first in the current dir
Diffstat (limited to 'scripts/push_new_patch')
-rwxr-xr-x | scripts/push_new_patch/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/push_new_patch/main.go b/scripts/push_new_patch/main.go index 01b844c8d..40d95d9a0 100755 --- a/scripts/push_new_patch/main.go +++ b/scripts/push_new_patch/main.go @@ -11,9 +11,10 @@ import ( "io/ioutil" "log" "os" - "os/exec" "strconv" "strings" + + "github.com/jesseduffield/lazygit/pkg/secureexec" ) func main() { @@ -49,7 +50,7 @@ func main() { func runCommand(args ...string) { fmt.Println(strings.Join(args, " ")) - cmd := exec.Command(args[0], args[1:]...) + cmd := secureexec.Command(args[0], args[1:]...) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr err := cmd.Start() |