From c2c9cc23278c2c399ef8ad1687938a43f88b1c8c Mon Sep 17 00:00:00 2001 From: nhyatt Date: Sat, 20 Jan 2024 11:23:53 -0600 Subject: [PATCH] correct bin/sh command --- internal/config/initialize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/initialize.go b/internal/config/initialize.go index 5981d36..67ac12c 100644 --- a/internal/config/initialize.go +++ b/internal/config/initialize.go @@ -35,7 +35,7 @@ func Init() { // check to see if nsupdate is installed 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") }