diff options
author | serg@sergbook.mylan <> | 2005-05-09 09:24:05 +0200 |
---|---|---|
committer | serg@sergbook.mylan <> | 2005-05-09 09:24:05 +0200 |
commit | b1edf499520e0dbce658ebab13ba2ef4e99a7eba (patch) | |
tree | 62b76f717ee91b67c1ee773c79a95de57aeec892 /scripts | |
parent | 44c857ad4d274ac0c8138f01512e8ed708891e53 (diff) | |
download | mariadb-git-b1edf499520e0dbce658ebab13ba2ef4e99a7eba.tar.gz |
don't use tmp file for such a triviality
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_install_db.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh index 0b82e02761e..8dd95da11e3 100644 --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh @@ -11,7 +11,6 @@ in_rpm=0 windows=0 defaults="" user="" -tmp_file=/tmp/mysql_install_db.$$ case "$1" in --no-defaults|--defaults-file=*|--defaults-extra-file=*) @@ -223,10 +222,8 @@ then then echo "Fill help tables" fi - echo "use mysql;" > $tmp_file - cat $tmp_file $fill_help_tables | eval "$mysqld_install_cmd_line" + (echo "use mysql;"; cat $fill_help_tables) | eval "$mysqld_install_cmd_line" res=$? - rm $tmp_file if test $res != 0 then echo "" |