diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-11 10:43:59 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-11 10:43:59 -0200 |
commit | 7a52326211499e83c6a8bf089ed0d349b10e96d2 (patch) | |
tree | c703fc52e15d9cc08e45f49692773ed16b517f68 | |
parent | d79f98f4a32167de44fb72f3b5bff104b36d2f58 (diff) | |
download | puppet-backup-7a52326211499e83c6a8bf089ed0d349b10e96d2.tar.gz puppet-backup-7a52326211499e83c6a8bf089ed0d349b10e96d2.tar.bz2 |
Minor fix at sync-backups
-rw-r--r-- | files/sync-backups | 8 |
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 |