mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 00:09:30 +01:00
remove hook command for sessionStart
This commit is contained in:
3
.github/hooks/hooks.json
vendored
3
.github/hooks/hooks.json
vendored
@@ -4,8 +4,7 @@
|
||||
"sessionStart": [
|
||||
{
|
||||
"type": "command",
|
||||
"bash": "if [ -f ~/.vscode-worktree-setup ]; then nohup bash -c 'npm ci && npm run compile' > /tmp/worktree-setup-$(date +%Y-%m-%d_%H-%M-%S).log 2>&1 & fi",
|
||||
"powershell": "if (Test-Path \"$env:USERPROFILE\\.vscode-worktree-setup\") { $log = \"$env:TEMP\\worktree-setup-$(Get-Date -Format 'yyyy-MM-dd_HH-mm-ss').log\"; $dir = $PWD.Path; Start-Job -ScriptBlock { param($d, $l) Set-Location $d; & { npm ci; if ($LASTEXITCODE -eq 0) { npm run compile } } *> $l } -ArgumentList $dir, $log | Out-Null }"
|
||||
"bash": ""
|
||||
}
|
||||
],
|
||||
"sessionEnd": [
|
||||
|
||||
Reference in New Issue
Block a user