Skip to content

Commit

Permalink
quote path variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nefarius2001 committed Feb 14, 2021
1 parent 0a45a8f commit 10152e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion windows/autobuild/autobuild_windowsinstaller_2_build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ param (
[string] $jamulus_project_path = $Env:jamulus_project_path
)
# Sanity check of parameters
if (($jamulus_project_path -eq $null) -or ($jamulus_project_path -eq "")) {
if (("$jamulus_project_path" -eq $null) -or ("$jamulus_project_path" -eq "")) {
throw "expecting ""jamulus_project_path"" as parameter or ENV"
} elseif (!(Test-Path -Path $jamulus_project_path)) {
throw "non.existing jamulus_project_path: $jamulus_project_path"
Expand Down
4 changes: 2 additions & 2 deletions windows/autobuild/autobuild_windowsinstaller_3_copy_files.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ param (
[string] $jamulus_buildversionstring = $Env:jamulus_buildversionstring
)
# Sanity check of parameters
if (($jamulus_project_path -eq $null) -or ($jamulus_project_path -eq "")) {
if (("$jamulus_project_path" -eq $null) -or ("$jamulus_project_path" -eq "")) {
throw "expecting ""jamulus_project_path"" as parameter or ENV"
} elseif (!(Test-Path -Path $jamulus_project_path)) {
} elseif (!(Test-Path -Path "$jamulus_project_path")) {
throw "non.existing jamulus_project_path: $jamulus_project_path"
} else {
echo "jamulus_project_path is valid: $jamulus_project_path"
Expand Down

0 comments on commit 10152e5

Please sign in to comment.