mirror of
https://gitee.com/arthas/arthas.git
synced 2024-11-30 03:07:37 +08:00
fix as.sh mingw support. #130
This commit is contained in:
parent
cf49acb5c1
commit
c0c5171fe7
@ -631,10 +631,13 @@ attach_jvm()
|
||||
|
||||
echo "Attaching to ${TARGET_PID} using version ${1}..."
|
||||
|
||||
local opts="${ARTHAS_OPTS} ${BOOT_CLASSPATH} ${JVM_OPTS}"
|
||||
local java_command=("${JAVA_HOME}"/bin/java)
|
||||
if [ "${BOOT_CLASSPATH}" ]; then
|
||||
java_command+=("${BOOT_CLASSPATH}")
|
||||
fi
|
||||
|
||||
"${JAVA_HOME}"/bin/java \
|
||||
${opts} \
|
||||
"${java_command[@]}" \
|
||||
${ARTHAS_OPTS} ${JVM_OPTS} \
|
||||
-jar "${arthas_lib_dir}/arthas-core.jar" \
|
||||
-pid ${TARGET_PID} \
|
||||
-target-ip ${TARGET_IP} \
|
||||
|
Loading…
Reference in New Issue
Block a user