Skip to content

Module with 1 cmdlet is not processed correctly #8

Open
@dermeister0

Description

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
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions