Open ikkaro opened 9 years ago
Also confirming this - runs fine under 3.0, but not 2.0. Not a biggie, gives us a reason to upgrade to 3.0.
In fact, it needs PowerShell v3. Maybe adding the information in the README could be useful, or just a check in the code.
Something like
if ($host.version.major -lt 3) {
write-host You need at least version 3 of Powershell.
Exit
}
I could add it to the code, but I don't know where to put it for a module.
Hi @MattHodge , @ikkaro , @daks , there is any tested workarround which enable us run this tool ok in Powershell v2 ?
I am pretty sure someone made a fork which supported v2. Cannot find it though :/
The fork that supports v2 is located here: https://github.com/ashishpandey/Graphite-PowerShell-Functions
Hi Matt,
It seems that the module doesn't works fine in Powershell v2.0 because of the method IsNullOrWhitespace and others, could that to be fixed or add a copy of the functions for PowerShell 2.0.
http://blog.danskingdom.com/powershell-2-0-vs-3-0-syntax-differences-and-more/