[X] I have read and agree to the project's Code of Conduct.
[X] Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
[X] Do not leave "+1" or other comments that do not add relevant information or questions.
[X] If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Description
There is a line in the code where only photon os version 4.0 is matched where the changes are applicable even for 5.0, change the below line of code from
$photonRelease.ScriptOutput -match "4.0"
to
$photonRelease.ScriptOutput -match "[4-5].0"
Use Case(s)
If we try to run against photon os 5.0, it doesn't pass the line and hence takes up setting for <4.0 version which is wrong
$photonRelease.ScriptOutput -match "4.0"
Potential Configuration
change the below line of code from
$photonRelease.ScriptOutput -match "4.0"
to
$photonRelease.ScriptOutput -match "[4-5].0"
This is because -ge "4.0", sometimes has behaved wierdly.
Code of Conduct
Description
There is a line in the code where only photon os version 4.0 is matched where the changes are applicable even for 5.0, change the below line of code from
$photonRelease.ScriptOutput -match "4.0"
to$photonRelease.ScriptOutput -match "[4-5].0"
Use Case(s)
If we try to run against photon os 5.0, it doesn't pass the line and hence takes up setting for <4.0 version which is wrong
$photonRelease.ScriptOutput -match "4.0"
Potential Configuration
change the below line of code from
$photonRelease.ScriptOutput -match "4.0"
to$photonRelease.ScriptOutput -match "[4-5].0"
This is because
-ge "4.0"
, sometimes has behaved wierdly.References
No response