chocolatey / checksum

Validates MD5/SHA1 CheckSums on the command line.
Apache License 2.0
14 stars 13 forks source link

(#9) Remove apostrophe(s) only from ends of file path #10

Closed TheCakeIsNaOH closed 2 years ago

TheCakeIsNaOH commented 2 years ago

Description Of Changes

Instead of replacing apostrophes, they are trimed them from both ends of the file path.

Motivation and Context

This allows checksuming of files within a user directory where the user's account name contains an apostrophe.

Testing

  1. Built checksum.exe
  2. Copied to $env:ChocolateyInstall\tools, overwriting the pre-existing checksum.exe
  3. Ran choco install 4k-video-downloader from an admin account with a name that contains an apostrophe

Change Types Made

Related Issue

Fixes #9

AdmiringWorm commented 2 years ago

@TheCakeIsNaOH your changes have been merged, thanks for your contribution 👍