LPGhatguy / aftman

Aftman, the prodigal sequel to Foreman
MIT License
157 stars 16 forks source link

Strip upper-case version of EXE_SUFFIX #57

Closed JohnnyMorganz closed 4 months ago

JohnnyMorganz commented 8 months ago

On windows, file paths are case insensitive, so binary.EXE should be treated just like binary.exe. Interestingly, command prompt will return a lowercase extension as the current exe name, whilst PowerShell does not. This fixes the case for PowerShell

Fixes #54

jackTabsCode commented 4 months ago

@LPGhatguy

LPGhatguy commented 4 months ago

I think the "right" way to solve this is with a strip_suffix_case_insensitive type function, but this is a great fix for a real problem now.