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