EvotecIT / PSWinDocumentation

PowerShell Module that creates Word/Excel/SQL documentation from Active Directory (AD), AWS, Office 365 and others. It's a work in progress!
MIT License
251 stars 39 forks source link

Custom Word Template doesn't load - return Null #11

Closed ferwe closed 5 years ago

ferwe commented 5 years ago

If a custom template is choosen, the function Get-DocumentPath returns " Null" After debugging I realized, that the reason is the if statement in line 13. The function Test-File needs to be in separate brackets. Otherwise the result of the if statement is just empty instead of $true or $false.

PrzemyslawKlys commented 5 years ago

Thanks. Obviously my bad ;-)

ferwe commented 5 years ago

Hey Przemyslaw

No worries man. Your'e doing a great job! I'm enjoying your modules and I'm happy if I can support you in any way :)

Thanks for sharing this great stuff!

Regards Ferdinand Weiner

Am Fr., 14. Dez. 2018 um 09:47 Uhr schrieb Przemysław Kłys < notifications@github.com>:

Merged #11 https://github.com/EvotecIT/PSWinDocumentation/pull/11 into master.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EvotecIT/PSWinDocumentation/pull/11#event-2026282131, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai8WpjAtJi9d0BuDUIqHF6D7uRrRBoRxks5u42WugaJpZM4ZTEUP .