Compare commits
2 Commits
65aeeda263
...
0.0.8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47f12834c1 | ||
|
|
b4a65a1af4 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
.direnv
|
.direnv
|
||||||
server.log
|
server.log
|
||||||
|
shell.nix
|
||||||
mem.go
|
mem.go
|
||||||
nxcaldav
|
nxcaldav
|
||||||
in/
|
in/
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user