From c7b890c18c65232be17c4d215f63a66453b5efea Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 24 Oct 2019 11:05:44 +0200 Subject: backup-progress.in: ignore unset du_timeout --- backup-progress.in | 4 ++-- 1 file 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 -- cgit v1.2.3-70-g09d2