Commit b1edf499 authored by serg@sergbook.mylan's avatar serg@sergbook.mylan

don't use tmp file for such a triviality

parent 44c857ad
...@@ -11,7 +11,6 @@ in_rpm=0 ...@@ -11,7 +11,6 @@ in_rpm=0
windows=0 windows=0
defaults="" defaults=""
user="" user=""
tmp_file=/tmp/mysql_install_db.$$
case "$1" in case "$1" in
--no-defaults|--defaults-file=*|--defaults-extra-file=*) --no-defaults|--defaults-file=*|--defaults-extra-file=*)
...@@ -223,10 +222,8 @@ then ...@@ -223,10 +222,8 @@ then
then then
echo "Fill help tables" echo "Fill help tables"
fi fi
echo "use mysql;" > $tmp_file (echo "use mysql;"; cat $fill_help_tables) | eval "$mysqld_install_cmd_line"
cat $tmp_file $fill_help_tables | eval "$mysqld_install_cmd_line"
res=$? res=$?
rm $tmp_file
if test $res != 0 if test $res != 0
then then
echo "" echo ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment