We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 985b3c5 commit ec6809cCopy full SHA for ec6809c
docs/generate.ps1
@@ -17,7 +17,7 @@ try {
17
mkdir -p $buildRoot -ErrorAction Ignore | Out-Null
18
19
if (-not (git worktree list --porcelain | Select-String 'gh-pages')) {
20
- exec git fetch --quiet origin gh-pages:gh-pages
+ exec git fetch --quiet -u origin gh-pages:gh-pages
21
exec git worktree add $targetDir gh-pages
22
}
23
src/common.psm1
@@ -1,7 +1,7 @@
1
function exec([string]$_cmd) {
2
write-host -ForegroundColor DarkGray ">>> $_cmd $args"
3
$ErrorActionPreference = 'Continue'
4
- & $_cmd @args 2>&1
+ & $_cmd @args
5
$ErrorActionPreference = 'Stop'
6
if ($LASTEXITCODE -ne 0) {
7
write-error "Failed with exit code $LASTEXITCODE"
0 commit comments