Skip to content

Cant get encoding buffer to work on exec #675

@vongohren

Description

@vongohren

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

Metadata

Metadata

Assignees

Labels

execIssues specific to the shell.exec() API

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions