I have a bash script like this:
#!/bin/bash cd ~/src/program && rm -rf node_modules && yarn
When I invoke this script by executing
(shell-command "bash ~/src/helper/script.sh") it stumbles on
yarn and returns exit code 127. Also, it successfully executes every command before
I also tried
bash -c "yarn install" with no avail.
When I run the script from emacs shell buffer or from an external bash, it executes successfully. I also made the script executable, but it didn't help.
How to easily run a bash script or an emacs function from an Org Mode file to remove a directory and invoke
yarn install to populate that directory?