Minor updates
This commit is contained in:
parent
9f1a7312d5
commit
a501adfc65
@ -63,7 +63,7 @@ src_mysqldump() {
|
||||
log "Run command: $*"
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
if "$@" 2>> "$__log_file" > "$sqldump"; then
|
||||
if "$@" 2>> "$log_file" > "$sqldump"; then
|
||||
# Compress file
|
||||
sqldump="$(compress_file "$sqldump")"
|
||||
# Append path to 'backups' array
|
||||
|
@ -64,7 +64,7 @@ src_pg_dump() {
|
||||
log "Run command: $*"
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
if "$@" 2>> "$__log_file" > "$sqldump"; then
|
||||
if "$@" 2>> "$log_file" > "$sqldump"; then
|
||||
# Compress dump
|
||||
sqldump="$(compress_file "$sqldump")"
|
||||
# Append path to 'backups' array
|
||||
|
@ -86,7 +86,7 @@ src_tar() {
|
||||
log "Run command: $*"
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
if "$@" 2>> "$__log_file"; then
|
||||
if "$@" 2>> "$log_file"; then
|
||||
# Append path to 'backups' array
|
||||
backups+=("$archive")
|
||||
else
|
||||
|
@ -60,7 +60,7 @@ tgt_cp() {
|
||||
|
||||
log "Run command: $*"
|
||||
|
||||
if "$@" 2>> "$__log_file"; then
|
||||
if "$@" 2>> "$log_file"; then
|
||||
: # Success
|
||||
else
|
||||
handle_error \
|
||||
|
@ -29,6 +29,4 @@ LIBRARY="${LIBRARY:-./lib}"
|
||||
. "$LIBRARY/handlers/targets/cp.sh"
|
||||
. "$LIBRARY/handlers/targets/s3cmd.sh"
|
||||
|
||||
if [ -f "$LIBRARY/extra.sh" ]; then
|
||||
. "$LIBRARY/extra.sh"
|
||||
fi
|
||||
[ -f "$LIBRARY/extra.sh" ] && . "$LIBRARY/extra.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user