correct bin/sh command
This commit is contained in:
parent
21b9343534
commit
c2c9cc2327
@ -35,7 +35,7 @@ func Init() {
|
|||||||
|
|
||||||
// check to see if nsupdate is installed
|
// check to see if nsupdate is installed
|
||||||
cmd := "command -v nsupdate"
|
cmd := "command -v nsupdate"
|
||||||
if err := exec.Command("/usr/bin/sh", "-c", cmd).Run(); err != nil {
|
if err := exec.Command("/usr/bin/env", "sh", "-c", cmd).Run(); err != nil {
|
||||||
panic("nsupdate is not installed")
|
panic("nsupdate is not installed")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user