summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-24 11:05:44 +0200
committerErich Eckner <git@eckner.net>2019-10-24 11:05:44 +0200
commitc7b890c18c65232be17c4d215f63a66453b5efea (patch)
tree2d5a5f382bdf85c6ed9d0169dff4fcab979d250f
parent62d5f6797fdac34db6b260e87475828793414e7a (diff)
downloadhardlinkedBackups-c7b890c18c65232be17c4d215f63a66453b5efea.tar.xz
backup-progress.in: ignore unset du_timeout
-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