Fix configuration file encoding error

PowerShell apparently defaults to UTF16, so when the configuration is
read like ASCII or UTF-8, there are “null” characters between every
“echo”ed character in this script
This commit is contained in:
MPLew-is 2016-03-23 05:59:40 -04:00
parent 458d91fd23
commit 1408c80331

View File

@ -34,8 +34,8 @@ mysqld --initialize-insecure
cp $dir/my-default.ini $dir/my.ini
#Output client configuration to my.ini file so no username is required when connecting
echo \"\" >> $dir/my.ini
echo \"[client]\" >> $dir/my.ini
echo \"user=root\" >> $dir/my.ini
echo \"\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append
echo \"[client]\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append
echo \"user=root\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append
"
}