summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-11-17 14:18:47 -0700
committerSean Whitton <spwhitton@spwhitton.name>2015-11-17 14:18:47 -0700
commitdff3b59fe11bd00da9ecbc7dbfe804a61b0f100b (patch)
tree5824068e7ba2e3508b1313e8632e40cf37efa205
parent9f7e771f0b308a2366b4a75aa034b2580c69b46e (diff)
downloaddotfiles-dff3b59fe11bd00da9ecbc7dbfe804a61b0f100b.tar.gz
local duply doesn't go ahead if offline
-rwxr-xr-xbin/duply-run4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/duply-run b/bin/duply-run
index 7b4fbc2e..55db40fa 100755
--- a/bin/duply-run
+++ b/bin/duply-run
@@ -40,13 +40,13 @@ case "$(hostname -f)" in
# force execution with duply in my dotfiles repo, not apt
# package version installed system-wide (though $PATH from
# .shenv should get this right anyway)
- $HOME/bin/duply zephyr-swhitton-home-run backup_purge --force
+ offline || $HOME/bin/duply zephyr-swhitton-home-run backup_purge --force
fi
;;
"artemis.silentflame.com")
cd $HOME
if [ -e "$HOME/.ssh/id_duply" ]; then
- $HOME/bin/duply artemis-swhitton-home-run backup_purge --force
+ offline || $HOME/bin/duply artemis-swhitton-home-run backup_purge --force
fi
;;
"athena.silentflame.com")