Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit e9a62be

Browse files
authored
!Deploy - Release v0.1.0
!Deploy - Release v0.1.0
2 parents 17e69af + f716a40 commit e9a62be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Deploy.PSDeploy.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ if (
1212
$Env:CommitMessage -match '!Deploy'
1313
) {
1414
$manifest = Import-PowerShellDataFile -Path ".\$Env:ProjectName\$Env:ProjectName.psd1"
15-
$manifest.RequiredModules|ForEach-Object {
15+
$manifest.RequiredModules | ForEach-Object {
16+
if ([string]::IsNullOrEmpty($_)) {
17+
return
18+
}
1619
$ReqModuleName = ([Microsoft.PowerShell.Commands.ModuleSpecification]$_).Name
1720
$InstallModuleParams = @{Name = $ReqModuleName}
1821
if ($ReqModuleVersion = ([Microsoft.PowerShell.Commands.ModuleSpecification]$_).RequiredVersion) {

0 commit comments

Comments
 (0)