Press icon indicating copy to clipboard operation
Press copied to clipboard

Update Update-PublicFunctions.ps1

Open bchap1n opened this issue 3 years ago • 3 comments

In trying to build your module SecretManagement.KeePass, I found $currentFunctions was null. SecretManagement.KeePass.psd1 does contain this data but Get-Metadata was returning null on my workstation ¯_(ツ)_/¯. This causes compare-object to error out.

bchap1n avatar May 19 '22 23:05 bchap1n

Nice catch! Shouldn't it be @('') though? compare-object sometimes gets picky on single objects vs. arrays.

JustinGrote avatar May 19 '22 23:05 JustinGrote

that works also for me so I'll update my PR

bchap1n avatar May 19 '22 23:05 bchap1n

The test failure is because I probably have some deps that need fixing, I can't promise when I'll get to it but I thank you for the contribution!

JustinGrote avatar May 20 '22 04:05 JustinGrote