about summary refs log tree commit diff
path: root/home/profiles/base/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'home/profiles/base/scripts')
-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"