diff options
Diffstat (limited to 'mysql')
-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 } |