Created
December 31, 2017 12:21
-
-
Save oryband/8991b66c5c4cfb833f95f4de29610266 to your computer and use it in GitHub Desktop.
Kin Mobile SDK on Ethereum - testrpc-kill.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd truffle | |
if [ -f 'testrpc.pid' ]; then | |
echo "killing testrpc on process id $(cat testrpc.pid)" | |
# Don't fail if the process is already killed | |
kill -SIGINT $(cat testrpc.pid) || true | |
rm -f testrpc.pid | |
else | |
echo "testrpc.pid not found, doing nothing" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment