Merge pull request #10 from loanDepot/tdrake/fixSetVersionForInitialCommit
Fixing SetVersion when run before module has been published before
This commit is contained in:
@@ -48,7 +48,7 @@ task SetVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
"Checking for published version"
|
"Checking for published version"
|
||||||
$publishedModule = Find-Module -Name $ModuleName |
|
$publishedModule = Find-Module -Name $ModuleName -ErrorAction 'SilentlyContinue' |
|
||||||
Sort-Object -Property {[version]$_.Version} -Descending |
|
Sort-Object -Property {[version]$_.Version} -Descending |
|
||||||
Select -First 1
|
Select -First 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user