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

Shell script not executing correctly #41

Open
mamodom opened this issue Apr 15, 2017 · 4 comments
Open

Shell script not executing correctly #41

mamodom opened this issue Apr 15, 2017 · 4 comments

Comments

@mamodom
Copy link

mamodom commented Apr 15, 2017

When executing a command with output redirection or piping, the precedence isn't respected. (I think I can give a better explanation with an example).

When running echo "Hello" > ./world.txt with webpack-shell-plugin, instead of having a file named world.txt with the contents Hello, I get the string "Hello" > ./world.txt in the console

I have created a repo with the repro of the issue I'm seeing.

@gpminsuk
Copy link

+1

@nitwhiz
Copy link

nitwhiz commented Nov 7, 2017

It (the code) seems like it splits on the first space, it's impossible to properly chain commands because of that either.

['cd dir', 'stuff'] -> stuff isn't executed in dir
['cd dir ; stuff'] -> seems to use dir ; stuff as arguments for cd

@bhaskerchari
Copy link

bhaskerchari commented Dec 22, 2019

I'm trying to install some npm package in a different directory but it doesn't work.

onBuildEnd: ['cd ./dist/app && npm install somepackage']

But no success so far even though I tried different ways :(

@bhaskerchari
Copy link

The answer in this post helped me to resolve the issue. Reposting as it may help others.

mkdir and then use --prefix

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

No branches or pull requests

4 participants