From dad0e2aeca6740a559c56e35e2d87abb6cce7659 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 1 Aug 2023 22:12:51 +0900 Subject: fix(home/base): airport: fix delete-after not getting added --- home/profiles/base/scripts/airport.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home/profiles/base/scripts/airport.nix b/home/profiles/base/scripts/airport.nix index c46573d..996d896 100755 --- a/home/profiles/base/scripts/airport.nix +++ b/home/profiles/base/scripts/airport.nix @@ -61,8 +61,7 @@ bin_exists "rsync" || die "FATAL: couldn't find rsync" opts=(-au --stats --info=progress2) - [ $SAFEOP ] || opts+=(--delete-after) - + [ $SAFEOP -eq 1 ] && opts+=(--delete-after) case "$1" in send) delay "Airport will run 'rsync -au' to $DIR to SEND" -- cgit 1.4.1