I have this simple pipelines script:
image: node:6.9.4
pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- npm install -g truffle
- npm install -g ganache-cli
- npm install
- npm run lint
- npm run solium
- npm run ganache
- sleep 5
- truffle migrate
- truffle test
- su kill `su lsof -t -i:9545`
- npm run coverage
Can't get the su kill command to pass:
<span>su: invalid option -- 't'</span>
<span>Usage: su [options] [LOGIN]</span>
<span>Options:</span><span> -c, --command COMMAND pass COMMAND to the invoked shell</span>
<span> -h, --help display this help message and exit</span>
<span> -, -l, --login make the shell a login shell</span>
<span> -m, -p,</span><span> --preserve-environment do not reset environment variables, and</span><span> keep the same shell</span>
<span> -s, --shell SHELL use SHELL instead of the default in passwd</span>
<span>No passwd entry for user 'kill'</span><span>+ su kill `su lsof -t -i:9545`</span>
Any ideas?