diff options
author | Erich Eckner <git@eckner.net> | 2019-10-24 11:05:44 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-24 11:05:44 +0200 |
commit | c7b890c18c65232be17c4d215f63a66453b5efea (patch) | |
tree | 2d5a5f382bdf85c6ed9d0169dff4fcab979d250f | |
parent | 62d5f6797fdac34db6b260e87475828793414e7a (diff) | |
download | hardlinkedBackups-c7b890c18c65232be17c4d215f63a66453b5efea.tar.xz |
backup-progress.in: ignore unset du_timeout
-rwxr-xr-x | backup-progress.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backup-progress.in b/backup-progress.in index 4b6e911..20beba0 100755 --- a/backup-progress.in +++ b/backup-progress.in @@ -26,14 +26,14 @@ for backupID in "${!backups[@]}"; do | tail -n1 ) last_size=$( - timeout "${du_timeout}" du -sb "${dir}/${last}" \ + ${du_timeout+timeout "${du_timeout}"} "${du_timeout}" du -sb "${dir}/${last}" \ | awk '{print $1}' ) if [ -z "${last_size}" ]; then last_size='4096' fi current_size=$( - timeout "${du_timeout}" du -sb "${dir}/aktuell" \ + ${du_timeout+timeout "${du_timeout}"} du -sb "${dir}/aktuell" \ | awk '{print $1}' ) if [ -z "${current_size}" ]; then |