mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-15 22:27:51 +08:00
fix multiuser user_init.cmd creation
This commit is contained in:
5
vendor/psmodules/Cmder.ps1
vendored
5
vendor/psmodules/Cmder.ps1
vendored
@ -186,8 +186,9 @@ function yOrn( $question ) {
|
||||
return $Answer
|
||||
}
|
||||
|
||||
function templateExpand($template, $outfile) {
|
||||
$template = Get-Content $template -Raw
|
||||
function templateExpand($template_filename, $outfile) {
|
||||
$template = Get-Content "$template_filename" -Raw
|
||||
|
||||
$expanded = Invoke-Expression "@`"`r`n$template`r`n`"@"
|
||||
|
||||
$overwrite = 'y'
|
||||
|
Reference in New Issue
Block a user