fix multiuser user_init.cmd creation

This commit is contained in:
Dax T. Games
2023-07-03 16:19:07 -04:00
parent 615ba5f816
commit 4bf659833c
3 changed files with 17 additions and 22 deletions

View File

@ -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'