From 85f9ba3c7804d947222b1147319e9f69b57bdf08 Mon Sep 17 00:00:00 2001 From: vaggeliskls Date: Sat, 18 May 2024 16:55:21 +0300 Subject: [PATCH] fix: isnull of empty add quotes --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index f5e9ab8..cd35656 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -43,7 +43,7 @@ Vagrant.configure("2") do |config| Write-Host "Running $runner"; $random = -join ((48..57) + (97..122) | Get-Random -Count 8 | % {[char]$_}); Expand-Archive -LiteralPath ${GITHUB_RUNNER_FILE} -DestinationPath runner-$random -Force; - if (![string]::IsNullOrEmpty(${PAT})) { + if (![string]::IsNullOrEmpty("${PAT}")) { Invoke-Expression -Command "C:\\runner-$random\\config.cmd --name ${GITHUB_RUNNER_NAME}_$random --replace --unattended --url ${RUNNER_URL} --labels ${GITHUB_RUNNER_LABELS} --pat ${PAT}"; } else { Invoke-Expression -Command "C:\\runner-$random\\config.cmd --name ${GITHUB_RUNNER_NAME}_$random --replace --unattended --url ${RUNNER_URL} --labels ${GITHUB_RUNNER_LABELS} --token ${TOKEN}";