summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackup-progress.in4
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