Minor updates

This commit is contained in:
ge 2022-10-08 19:40:25 +03:00
parent 9f1a7312d5
commit a501adfc65
5 changed files with 5 additions and 7 deletions

View File

@ -63,7 +63,7 @@ src_mysqldump() {
log "Run command: $*" log "Run command: $*"
# shellcheck disable=SC2154 # shellcheck disable=SC2154
if "$@" 2>> "$__log_file" > "$sqldump"; then if "$@" 2>> "$log_file" > "$sqldump"; then
# Compress file # Compress file
sqldump="$(compress_file "$sqldump")" sqldump="$(compress_file "$sqldump")"
# Append path to 'backups' array # Append path to 'backups' array

View File

@ -64,7 +64,7 @@ src_pg_dump() {
log "Run command: $*" log "Run command: $*"
# shellcheck disable=SC2154 # shellcheck disable=SC2154
if "$@" 2>> "$__log_file" > "$sqldump"; then if "$@" 2>> "$log_file" > "$sqldump"; then
# Compress dump # Compress dump
sqldump="$(compress_file "$sqldump")" sqldump="$(compress_file "$sqldump")"
# Append path to 'backups' array # Append path to 'backups' array

View File

@ -86,7 +86,7 @@ src_tar() {
log "Run command: $*" log "Run command: $*"
# shellcheck disable=SC2154 # shellcheck disable=SC2154
if "$@" 2>> "$__log_file"; then if "$@" 2>> "$log_file"; then
# Append path to 'backups' array # Append path to 'backups' array
backups+=("$archive") backups+=("$archive")
else else

View File

@ -60,7 +60,7 @@ tgt_cp() {
log "Run command: $*" log "Run command: $*"
if "$@" 2>> "$__log_file"; then if "$@" 2>> "$log_file"; then
: # Success : # Success
else else
handle_error \ handle_error \

View File

@ -29,6 +29,4 @@ LIBRARY="${LIBRARY:-./lib}"
. "$LIBRARY/handlers/targets/cp.sh" . "$LIBRARY/handlers/targets/cp.sh"
. "$LIBRARY/handlers/targets/s3cmd.sh" . "$LIBRARY/handlers/targets/s3cmd.sh"
if [ -f "$LIBRARY/extra.sh" ]; then [ -f "$LIBRARY/extra.sh" ] && . "$LIBRARY/extra.sh"
. "$LIBRARY/extra.sh"
fi