Last active
June 16, 2020 16:24
-
-
Save milendyankov/112cf599bb86037fa95f0ebb3b4770b6 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
DIR=`pwd` | |
cd /tmp | |
CRASH="/tmp/crash-1.3.1/crash/bin/crash.sh" | |
if [ ! -f "$CRASH" ]; then | |
curl https://repo1.maven.org/maven2/org/crashub/crash.distrib/1.3.1/crash.distrib-1.3.1.tar.gz > crash.distrib-1.3.1.tar.gz | |
tar -xzvf crash.distrib-1.3.1.tar.gz | |
fi | |
$CRASH `jps -q | sort | head -1` | |
cd $DIR | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment