Skip to content

Commit

Permalink
Log errors separately
Browse files Browse the repository at this point in the history
  • Loading branch information
aroben committed Jul 11, 2012
1 parent 7df0dd0 commit d578ec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bootstrap.ps1
Expand Up @@ -23,6 +23,6 @@ $client.DownloadFile("https://github.com/aroben/winbootstrap/zipball/master", $z
Unzip-Files $zip $tempDir.FullName
Start-Sleep -Seconds 1
$install = (Resolve-Path (Join-Path $tempDir.FullName "*\install.ps1")).Path
powershell -ExecutionPolicy Bypass -File $install > C:\Users\Administrator\winbootstrap.log 2>&1
powershell -ExecutionPolicy Bypass -File $install > C:\Users\Administrator\winbootstrap.log 2>C:\Users\Administrator\winbootstrap-error.log

"Your computer is now bootstrapped. Reboot now, or save a VM image for easy duplication."
5 changes: 1 addition & 4 deletions install.ps1
Expand Up @@ -29,10 +29,7 @@ function Install-StartupScripts {
Copy-Item $script.Path C:\cygwin\home\Administrator
}

reg import (Join-Path $scriptDirectory bootstrap-startup.reg) 2>$null
if ($LastExitCode -ne 0) {
throw "Error installing startup script"
}
reg import (Join-Path $scriptDirectory bootstrap-startup.reg)
}

Install-Cygwin
Expand Down

0 comments on commit d578ec8

Please sign in to comment.