LPGhatguy / aftman

Aftman, the prodigal sequel to Foreman
MIT License
162 stars 19 forks source link

Strip upper-case version of EXE_SUFFIX #57

Closed JohnnyMorganz closed 7 months ago

JohnnyMorganz commented 11 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 7 months ago

@LPGhatguy

LPGhatguy commented 7 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.