From 3ab4a04da03f9f945f8bcc730bd11c67768a4423 Mon Sep 17 00:00:00 2001 From: derfenix Date: Tue, 7 Jan 2025 21:07:07 +0300 Subject: [PATCH] Update nix flake --- flake.nix | 2 +- main.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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)