2 Commits

Author SHA1 Message Date
Lennart J. Kurzweg (Nx2)
47f12834c1 hardcode sh 2026-04-23 18:04:34 +02:00
Lennart J. Kurzweg (Nx2)
b4a65a1af4 gitignore 2026-04-23 17:33:35 +02:00
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
.direnv .direnv
server.log server.log
shell.nix
mem.go mem.go
nxcaldav nxcaldav
in/ in/

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)