Skip to content

Module with 1 cmdlet is not processed correctly #8

@dermeister0

Description

@dermeister0

Exception is thrown in Update-Progress function:

Exception: Attempted to divide by zero. --> Attempted to divide by zero.

It happens, because $totalCommands is not defined.

$totalCommands = $commandsHelp.Count

Simple fix:

$totalCommands = $commandsHelp.Count
if (!$totalCommands)
{
    $totalCommands = 1
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions