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
Cant get encoding buffer to work on exec #675
Labels
exec
Issues specific to the shell.exec() API
Comments
Assigning @freitagbr because this is similar to the root cause of #645 (both deal with encoding issues) |
No action or close? Im doing something else now |
ping @freitagbr any action to take here? |
Well, I'm pretty sure this would fix the problem:
This just converts the keystore string back into a buffer. However, this seems like a good opportunity to add an |
Closed
This was referenced Aug 29, 2019
This was referenced Mar 24, 2020
This was referenced Apr 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Node version (or tell us if you're using electron or some other framework):
7.6.0
ShellJS version (the most recent version/Github branch you see the bug on):
"version": "0.7.6"
Operating system:
Mac OS
Description of the bug:
Im trying to run
git archive --remote repo HEAD keystores/keystore.jks | tar -xO
But the encoding get fucked up when running through shelljs synchronous command.
I need to have buffer as encoding.
Example ShellJS command to reproduce the error:
exec(`git archive --remote=${url} ${branch} ${path}${file} | tar -xO`)
If you have a keystore anywhere, try that
The keystore becomes invalid.
I have noe used node directly where "buffer" works as encoding
The text was updated successfully, but these errors were encountered: