Fixing prompt while setting up
This commit is contained in:
parent
179f617bac
commit
c227fe4a0d
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue