Commit d2b0435e authored by Jocelyn Delalande's avatar Jocelyn Delalande

borg-ynh-backup : safer use of a var

If it includes whitespaces, for eg.
parent dba5886c
......@@ -48,7 +48,7 @@ $BORG list ${REPOSITORY} >/dev/null 2>&1 || \
$BORG init --encryption=repokey ${REPOSITORY} >> ${LOG_PATH} 2>&1
ts_log "Creating archive ${ARCHIVE}."
sudo -n $BORG_BACKUP_PUSH $BACKUP_DATE >> ${LOG_PATH} 2>&1
sudo -n $BORG_BACKUP_PUSH "${BACKUP_DATE}" >> ${LOG_PATH} 2>&1
ts_log "Rotating old backups."
$BORG prune -v $REPOSITORY \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment