diff --git a/flake.nix b/flake.nix index cf6dcdd..d9319e7 100644 --- a/flake.nix +++ b/flake.nix @@ -100,7 +100,7 @@ ]; preStart = if !sync.skipFullSync then '' mkdir -p ${sync.target} - photocatalog -source ${sync.source} -target ${sync.target} + photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} '' else null; script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode}"; serviceConfig = { diff --git a/main.go b/main.go index 34348dd..3b39ab3 100644 --- a/main.go +++ b/main.go @@ -67,9 +67,6 @@ func loadCfg() application.Config { }) flag.Func("mode", "Organizing mode", func(s string) error { - if s == "" { - - } cfg.Mode = application.Mode(s)