hardcode sh

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2026-04-23 18:04:34 +02:00
parent b4a65a1af4
commit 47f12834c1

View File

@@ -85,7 +85,7 @@ type Config struct {
func ResolvePassword(password, passwordCmd string) (string, error) { func ResolvePassword(password, passwordCmd string) (string, error) {
if passwordCmd != "" { if passwordCmd != "" {
cmd := exec.Command("sh", "-c", passwordCmd) cmd := exec.Command("/bin/sh", "-c", passwordCmd)
out, err := cmd.Output() out, err := cmd.Output()
if err != nil { if err != nil {
return "", fmt.Errorf("failed to run password command: %v", err) return "", fmt.Errorf("failed to run password command: %v", err)