I'm wondering if a failed npm cmd will cause my shell script to not execute my next command.
For example here is what I'm trying to do
npm run some_test_script
pkill something
What's happening is that my npm run some_test_script is failing but one thing I noticed is that the next cmd pkill something is not getting executed.
However, when my npm run some_test_script doesn't error out the next pkill something runs as intended. Is this an expected behavior? If so, is there a way I can still execute my pkill something regardless of whether or not npm run some_test_script works or not?
I want the pkill something to run after npm run some_test_script works/doesn't work so I don't want to use a & here
Thanks for your help!