I want to ignore yarn errors using this method
yarn install 2> >(grep -v warning 1>&2)
As I am using fish shell I did figure out that this command has to become yarn install 2> ">(grep -v warning 1>&2)"
to avoid a syntax error
However after one I want to run yarn run postinstall --force
So my command became yarn install 2> ">(grep -v warning 1>&2)" && yarn run postinstall --force
however it seems does not work, yarn run postinstall --force
does not really runs. Command finishes right afteryarn install
finishes.
Any ideas how to fix?
UPDATE: I also want that script to run in bash because this going to execute not just on my local dev machine but also on CD/CI that does not have fish-shell installed..