Fixing prompt while setting up

This commit is contained in:
Gal Szkolnik 2021-10-18 21:59:28 -04:00
parent 179f617bac
commit c227fe4a0d
1 changed files with 3 additions and 3 deletions

View File

@ -229,8 +229,8 @@ function Invoke-ExpressionEx {
## do_sudo 'Get-Content' $tmpScriptFile.FullName '|' 'Invoke-Expression' '|' 'Export-Clixml' '-Path' $tmpOutputFile.FullName
#do_sudo $sudo_cmd
if ( $tmpScriptFile ) { Remove-Item $tmpScriptFile }
if ( $tmpOutputFile ) { Import-Clixml $tmpOutputFile; Remove-Item $tmpOutputFile }
if ( $tmpScriptFile ) { Remove-Item $tmpScriptFile -Confirm:$false }
if ( $tmpOutputFile ) { Import-Clixml $tmpOutputFile; Remove-Item $tmpOutputFile -Confirm:$false }
return
}
@ -397,7 +397,7 @@ function _Init {
git pull
} elseif ( $PSCmdlet.ShouldProcess("Pull git repo from $GitURL into $MyPSScriptRoot ?") ) {
$local:tmpGitDir = New-TemporaryFile
Remove-Item $tmpGitDir -Confirm:$flase -Force
Remove-Item $tmpGitDir -Confirm:$false -Force
New-Item -Type Directory $tmpGitDir.FullName | Out-Null
Write-Verbose "Cloning git repo [$GitURL] into temporary location ('$($tmpGitDir.FullName)')..."
$local:GitOutput = "$(& git clone $GitURL $tmpGitDir.FullName --no-checkout)"