Skip to content

Commit

Permalink
Removing unnecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDarksideJ authored Jan 29, 2023
1 parent f85bf19 commit 180c04c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/rununitybuildmultiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ jobs:
function Get-LetterCount
{
Param ([string]$string)
echo "String [$string] has a length of [$string.Length]"
return $string.Length
}
echo "::endgroup::"
Expand All @@ -143,6 +142,7 @@ jobs:
echo 'Script Start'
echo "Unity hub path is {$hubPath}"
echo "Requested unity version is {$unityVersion}"
$InstalledUnityVersions = unity-hub editors
$editorRootPath = unity-hub ip -g
echo "Installed unity versions are {$InstalledUnityVersions}"
Expand All @@ -151,15 +151,12 @@ jobs:
$versionLength = Get-LetterCount $unityVersion
if ($versionLength -eq 4) {
$queryUnityVersion = GetString $InstalledUnityVersions "$unityVersion.{4,7}" -MatchIndex 0
echo "Found [$queryUnityVersion] from [$InstalledUnityVersions] with version length $versionLength"
}
elseif ($versionLength -eq 6) {
$queryUnityVersion = GetString $InstalledUnityVersions "$unityVersion.{4,5}" -MatchIndex 0
echo "Found [$queryUnityVersion] from [$InstalledUnityVersions] with version length $versionLength"
}
else {
$queryUnityVersion = GetString $InstalledUnityVersions "$unityVersion" -MatchIndex 0
echo "Found [$queryUnityVersion] from [$InstalledUnityVersions] with version length $versionLength"
}
echo "Found unity version is {$queryUnityVersion}"
Expand Down

0 comments on commit 180c04c

Please sign in to comment.