aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-11 10:43:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-11 10:43:59 -0200
commit7a52326211499e83c6a8bf089ed0d349b10e96d2 (patch)
treec703fc52e15d9cc08e45f49692773ed16b517f68 /files
parentd79f98f4a32167de44fb72f3b5bff104b36d2f58 (diff)
downloadpuppet-backup-7a52326211499e83c6a8bf089ed0d349b10e96d2.tar.gz
puppet-backup-7a52326211499e83c6a8bf089ed0d349b10e96d2.tar.bz2
Minor fix at sync-backups
Diffstat (limited to 'files')
-rw-r--r--files/sync-backups8
1 files changed, 6 insertions, 2 deletions
diff --git a/files/sync-backups b/files/sync-backups
index fc726b3..e1bd5d1 100644
--- a/files/sync-backups
+++ b/files/sync-backups
@@ -59,6 +59,10 @@ else
fi
# Sync backups for each node.
-for NODE in $*; do
+if [ ! -z "$*" ]; then
+ for NODE in $*; do
+ sync_backups_node
+ done
+else
sync_backups_node
-done
+fi