Skip to content

Commit 85f9ba3

Browse files
authored
fix: isnull of empty add quotes
1 parent 3446e5e commit 85f9ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Vagrant.configure("2") do |config|
4343
Write-Host "Running $runner";
4444
$random = -join ((48..57) + (97..122) | Get-Random -Count 8 | % {[char]$_});
4545
Expand-Archive -LiteralPath ${GITHUB_RUNNER_FILE} -DestinationPath runner-$random -Force;
46-
if (![string]::IsNullOrEmpty(${PAT})) {
46+
if (![string]::IsNullOrEmpty("${PAT}")) {
4747
Invoke-Expression -Command "C:\\runner-$random\\config.cmd --name ${GITHUB_RUNNER_NAME}_$random --replace --unattended --url ${RUNNER_URL} --labels ${GITHUB_RUNNER_LABELS} --pat ${PAT}";
4848
} else {
4949
Invoke-Expression -Command "C:\\runner-$random\\config.cmd --name ${GITHUB_RUNNER_NAME}_$random --replace --unattended --url ${RUNNER_URL} --labels ${GITHUB_RUNNER_LABELS} --token ${TOKEN}";

0 commit comments

Comments
 (0)