Skip to content

Fixes special characters and only downloads du.exe on Windows#5

Merged
simoneb merged 2 commits into
simoneb:masterfrom
SpraxDev:two-little-fixes
Apr 15, 2021
Merged

Fixes special characters and only downloads du.exe on Windows#5
simoneb merged 2 commits into
simoneb:masterfrom
SpraxDev:two-little-fixes

Conversation

@SpraxDev

Copy link
Copy Markdown
Contributor

Hi 👋🏻

I've forked your project and recoded parts of it in TypeScript for my own needs - Maybe you want to check out my improvements.

This PR contains 2 little fixes:

  • Setting the working directory and calling du on . allows us to avoid escaping the path - Putting it inside " might help in most cases but if doesn't break on Windows, it does on Linux/ext as " is a valid character to use.
  • Checking the OS before downloading du.exe onto a system that doesn't use it anyway

@SpraxDev

Copy link
Copy Markdown
Contributor Author

Sorry for failed test 😅

@simoneb

simoneb commented Apr 15, 2021

Copy link
Copy Markdown
Owner

Thanks

@simoneb simoneb merged commit 91cdba8 into simoneb:master Apr 15, 2021
@SpraxDev SpraxDev deleted the two-little-fixes branch April 15, 2021 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants