mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-14 20:51:21 +00:00
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:
parent
458d91fd23
commit
1408c80331
@ -34,8 +34,8 @@ mysqld --initialize-insecure
|
|||||||
cp $dir/my-default.ini $dir/my.ini
|
cp $dir/my-default.ini $dir/my.ini
|
||||||
|
|
||||||
#Output client configuration to my.ini file so no username is required when connecting
|
#Output client configuration to my.ini file so no username is required when connecting
|
||||||
echo \"\" >> $dir/my.ini
|
echo \"\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append
|
||||||
echo \"[client]\" >> $dir/my.ini
|
echo \"[client]\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append
|
||||||
echo \"user=root\" >> $dir/my.ini
|
echo \"user=root\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user