stevieb9 / berrybrew

Perlbrew for Windows!
Other
63 stars 9 forks source link

'unconfig' is unreliable #193

Closed stevieb9 closed 4 years ago

stevieb9 commented 4 years ago

When testing the new installer with a previous install of v1.22 at C:\Users\Admin\Downloads\berrybrew-122\berrybrew, berrybrew unconfig did not remove itself from the PATH env var, despite the software saying it had.

This definitely needs to be fixed.

stevieb9 commented 4 years ago

This is becaue of the regex in Unconfig(). It relies on berrybrew and bin being in the path string.

Will need to come up with something more reliable.

stevieb9 commented 4 years ago

Possibly we could write a method to return the exact path location of the berrybrew binary (set it as an object attribute?), and update the regex to include that full string exactly.