Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit 640f8e5

Browse files
Andreas Voellmerxtreme-stevehiehn
authored andcommitted
Using backwards compatible sudo flag when installing cfdevd
Signed-off-by: Steve Hiehn <[email protected]>
1 parent 9f8d1e4 commit 640f8e5

File tree

1 file changed

+1
-1
lines changed
  • src/code.cloudfoundry.org/cfdev/process

1 file changed

+1
-1
lines changed

src/code.cloudfoundry.org/cfdev/process/cfdevd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func IsCFDevDInstalled(sockPath string, binPath string, expectedMD5 string) bool
3232
func InstallCFDevD(cacheDir string) error {
3333
cfdevdPath := filepath.Join(cacheDir, "cfdevd")
3434
fmt.Println("Installing networking components (requires root privileges)")
35-
cmd := exec.Command("sudo", "--stdin", cfdevdPath, "install")
35+
cmd := exec.Command("sudo", "-S", cfdevdPath, "install")
3636
cmd.Stdout = os.Stdout
3737
cmd.Stderr = os.Stderr
3838
cmd.Stdin = os.Stdin

0 commit comments

Comments
 (0)