diff options
author | mail_redacted_for_web | 2020-04-03 16:51:10 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2020-04-03 16:51:10 +0200 |
commit | fa8c4a7bc2b2ae0885a829d5925c6198f787cb0f (patch) | |
tree | eac5070b7cb132b9002b4440e0413ee98e272f63 /bin | |
parent | e838de098a2de8fde719745bd23b2c198683c507 (diff) | |
download | rhel-scripts-fa8c4a7bc2b2ae0885a829d5925c6198f787cb0f.tar.bz2 |
bugfixes: bogus SIGKILL, non-quoted array
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sqlbackup | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/sqlbackup b/bin/sqlbackup index 018d700..45513d0 100755 --- a/bin/sqlbackup +++ b/bin/sqlbackup @@ -42,7 +42,6 @@ function bkillme { exit 130 } trap bkillme SIGINT -trap bkillme SIGKILL trap bkillme SIGTERM trap bstatus USR1 @@ -173,7 +172,7 @@ BINLOGF="$(basename "$BINLOGF")" DBARR=( $(mysql -u "$BUSER" --password="$(cat $PWFL)" -e "show databases \\G"|grep ^Data|awk '{print $NF}'|grep -vP "$NODB") ) j=1 [ "$SCHANAUZE" -ne 1 ]&&printf "\nDatabases being backed up\n======================\n" -[ "$SCHANAUZE" -ne 1 ]&&for i in ${DBARR[@]};do +[ "$SCHANAUZE" -ne 1 ]&&for i in "${DBARR[@]}";do echo -n "$i" case "$(( j % 3 ))" in 0) echo " " ;; |