Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support sharkd path with spaces #46

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

mbehr1
Copy link
Owner

@mbehr1 mbehr1 commented Sep 12, 2024

process.spawn supports command and arg handling for the command parameter. But it doesn't expect the path to be part of the command but to use the cwd option for that. Use path.parse to split the sharkdPath into dir and base and pass these as args. Added support for sharkdPath without dir as well defaulting to process.cwd().

Seems like the logic is not needed for tshark as there a seperator... is used.

Issue: about settings #29

process.spawn supports command and arg handling for the command parameter.
But it doesn't expect the path to be part of the command but to use the cwd option for that.
Use path.parse to split the sharkdPath into dir and base and pass these as args.
Added support for sharkdPath without dir as well defaulting to process.cwd().

Seems like the logic is not needed for tshark as there a seperator... is used.

Issue: about settings #29
@mbehr1 mbehr1 added the bug Something isn't working label Sep 12, 2024
@mbehr1 mbehr1 merged commit 3f8f011 into master Sep 12, 2024
3 checks passed
@mbehr1 mbehr1 deleted the fix/path_with_spaces branch September 12, 2024 17:34
Copy link

🎉 This PR is included in version 2.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant