bryandam / SoftwareUpdateScripts

A collection of scripts related to Software Updates
GNU General Public License v3.0
45 stars 11 forks source link

Config file value is numeric #16

Closed ChadSimmons closed 5 years ago

ChadSimmons commented 6 years ago

The regex to test for "is numeric" is actually testing for the existence of any number. In the case of LogFile=\server01\share\path\file.ext, the \d evaluates to true. Then the value -as [int] doesn't throw an error (by design?) but leave the variable LogFile as null/empty.

ChadSimmons commented 6 years ago

The @TheZNerd found the bug. Thank's Nathan!

theznerd commented 6 years ago

Fixes issue #17

bryandam commented 5 years ago

Thanks gentlemen. I've lost my dev/lab environment and won't have one for a few weeks until I pick up some SSDs in the upcoming sales and build something.

ChadSimmons commented 5 years ago

Loosing a lab really stinks... I've been there. The timing from a financial perspective isn't too bad... The 2TB Samsung 860 EVO 2.5" SATA III is under $300 right now. I'm so tempted...