Skip to content

Commit 5e95523

Browse files
authored
fix: start process cmd run
1 parent 2b5020e commit 5e95523

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Vagrantfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ Vagrant.configure("2") do |config|
4343
$random = -join ((48..57) + (97..122) | Get-Random -Count 8 | % {[char]$_});
4444
Expand-Archive -LiteralPath ${GITHUB_RUNNER_FILE} -DestinationPath runner-$random -Force;
4545
Invoke-Expression -Command "C:\\runner-$random\\config.cmd --name ${GITHUB_RUNNER_NAME}_$random --replace --unattended --url ${ORGANIZATION_URL} --labels ${GITHUB_RUNNER_LABELS} --pat ${PAT}";
46-
Start-Process "C:\\runner-$random\\run.cmd";
47-
Start-Process powershell.exe "C:\\runner-$random\\run.cmd" -Credential ($credentials) ;
46+
Start-Process "C:\\runner-$random\\run.cmd" -Credential ($credentials);
4847
}
4948
SHELL
5049
end

0 commit comments

Comments
 (0)