Skip to content

Commit 4be7bdf

Browse files
committed
Fix the launcher script for Fedora
1 parent 8d4fd18 commit 4be7bdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

perf-java

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
#!/bin/sh
12
PID=$1
23
OPTIONS=$2
34
PERF_MAP_FILE=/tmp/perf-$PID.map
45

56
if [ -p $JAVA_HOME ]; then
67
JAVA_HOME=/usr/lib/jvm/default-java
8+
[ -d $JAVA_HOME ] || JAVA_HOME=/etc/alternatives/java_sdk
79
fi
810

911
java -cp attach-main.jar:$JAVA_HOME/lib/tools.jar net.virtualvoid.perf.AttachOnce $PID $OPTIONS

0 commit comments

Comments
 (0)