about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-01 22:12:51 +0900
committersefidel <contact@sefidel.net>2023-08-01 22:12:51 +0900
commitdad0e2aeca6740a559c56e35e2d87abb6cce7659 (patch)
tree9a046b64209c3a055446136664dab520a850b163
parentc61ae865683f4f702984f6d09c309d3224cc9890 (diff)
downloadnixrc-dad0e2aeca6740a559c56e35e2d87abb6cce7659.tar.gz
nixrc-dad0e2aeca6740a559c56e35e2d87abb6cce7659.zip
fix(home/base): airport: fix delete-after not getting added
-rwxr-xr-xhome/profiles/base/scripts/airport.nix3
1 files changed, 1 insertions, 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"