Skip to content

Instantly share code, notes, and snippets.

@milendyankov
Last active June 16, 2020 16:24
Show Gist options
  • Save milendyankov/112cf599bb86037fa95f0ebb3b4770b6 to your computer and use it in GitHub Desktop.
Save milendyankov/112cf599bb86037fa95f0ebb3b4770b6 to your computer and use it in GitHub Desktop.
#!/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