Closed Arthurvdv closed 4 months ago
This format of the input parameter doesn't support $false, where it will result in the value true.
$false
true
With this PR I've improved the validation of the -prerelease flag.
-prerelease
DownloadFile.ps1 -TargetPath "" DownloadFile.ps1 -TargetPath "" -prerelease false DownloadFile.ps1 -TargetPath "" -prerelease False DownloadFile.ps1 -TargetPath "" -prerelease $False DownloadFile.ps1 -TargetPath "" -prerelease SomeRandomValue
These examples will download the Latest version.
Latest
DownloadFile.ps1 -TargetPath "" -prerelease true DownloadFile.ps1 -TargetPath "" -prerelease True DownloadFile.ps1 -TargetPath "" -prerelease $True
These examples will download the Pre-release version.
Pre-release
More details on https://github.com/StefanMaron/BusinessCentral.LinterCop/issues/500.
@StefanMaron can this PR be please approved and merged?
$false
, where it will result in the valuetrue
.With this PR I've improved the validation of the
-prerelease
flag.These examples will download the
Latest
version.These examples will download the
Pre-release
version.More details on https://github.com/StefanMaron/BusinessCentral.LinterCop/issues/500.