diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-05-05 03:50:35 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-05-05 03:50:35 +0200 |
commit | ebd5ac49380e0be7960f88b46f5a90b668bf8e09 (patch) | |
tree | 7bb6fdf5ffd62f9d5dfd1b840b47d9992fa560d0 | |
parent | f5746a110895263c300c81bde3cceea96f932ac7 (diff) | |
download | backup-ebd5ac49380e0be7960f88b46f5a90b668bf8e09.tar.gz backup-ebd5ac49380e0be7960f88b46f5a90b668bf8e09.tar.xz backup-ebd5ac49380e0be7960f88b46f5a90b668bf8e09.zip |
bugfix: logfunction should echo stdin
-rwxr-xr-x | mysql/mysql_backup.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mysql/mysql_backup.sh b/mysql/mysql_backup.sh index 675df3b..3960847 100755 --- a/mysql/mysql_backup.sh +++ b/mysql/mysql_backup.sh @@ -33,7 +33,14 @@ LOGGING="0" log() { if [ $LOGGING -eq 0 ]; then - echo "$@" + if [ -n "$1" ]; then + echo "$@" + else + while read line + do + echo $line + done + fi fi } |