Skip to content

Commit a968661

Browse files
use PSScriptRoot join path
1 parent 15714c2 commit a968661

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/ingest.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ if ([string]::IsNullOrWhiteSpace($SCRIPT_PATH)) {
2828
$SCRIPT_PATH = $MyInvocation.MyCommand.Path
2929
}
3030
if ([string]::IsNullOrWhiteSpace($SCRIPT_PATH)) {
31-
$SCRIPT_PATH = ".\ingest.ps1"
31+
$SCRIPT_PATH = Join-Path $PSScriptRoot "ingest.ps1"
3232
}
33-
$SCRIPT_CMD = "powershell -NoProfile -ExecutionPolicy Bypass -File `"$SCRIPT_PATH`""
33+
$SCRIPT_CMD = "powershell -NoProfile -ExecutionPolicy Bypass -File '$SCRIPT_PATH'"
3434

3535
$SUPPORTED_ARCH = @("AMD64", "ARM64")
3636

0 commit comments

Comments
 (0)