Skip to content

Commit 1907178

Browse files
MattGrayULBryceNewell-UL
authored andcommitted
Merge pull request #1630 from ultraleap/ci-fix
remove error message from CI build file to support older PS versions (cherry picked from commit cda4148)
1 parent 35a905a commit 1907178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CI/Scripts/ExportUnityPackage.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function global:Export-VersionTxt
44
{
55
Param(
66
[Parameter(Mandatory)]
7-
[ValidateScript({$(Test-Path $_ -PathType Container) -and $(Test-Path $(Join-Path $_ "package.json") -PathType Leaf)}, ErrorMessage = "Path provided must exist and contain a package.json file.")]
7+
[ValidateScript({$(Test-Path $_ -PathType Container) -and $(Test-Path $(Join-Path $_ "package.json") -PathType Leaf)})]
88
[string]
99
$PackagePath
1010
)
@@ -36,7 +36,7 @@ function global:Export-UnityPackage
3636
{
3737
param(
3838
[Parameter(Mandatory)]
39-
[ValidateScript({Test-Path $_ -PathType Container}, ErrorMessage = "Path not found or is not a directory")]
39+
[ValidateScript({Test-Path $_ -PathType Container})]
4040
[string]
4141
$ExportPath,
4242
[Parameter(Mandatory)]

0 commit comments

Comments
 (0)