1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

[fix] Temp fix to avoid first email each time

This commit is contained in:
ljf (zamentur) 2020-12-02 17:50:06 +01:00
parent 8efa276680
commit c18d08216c

View file

@ -31,7 +31,7 @@ do_backup() {
current_date=$(date +"%d_%m_%y_%H:%M")
pushd $work_dir
set +e
if borg init -e repokey $repo 2>&1 >/dev/null | log_with_timestamp; then
if borg init -e repokey $repo ; then
#human_size=`echo $size | awk '{ suffix=" KMGT"; for(i=1; $1>1024 && i < length(suffix); i++) $1/=1024; print int($1) substr(suffix, i, 1), $3; }'`
# Speed in Kbps
#speed=1000