fix as.sh mingw support. #130

This commit is contained in:
hengyunabc 2018-11-23 17:23:35 +08:00
parent cf49acb5c1
commit c0c5171fe7

View File

@ -631,10 +631,13 @@ attach_jvm()
echo "Attaching to ${TARGET_PID} using version ${1}..." 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 \ "${java_command[@]}" \
${opts} \ ${ARTHAS_OPTS} ${JVM_OPTS} \
-jar "${arthas_lib_dir}/arthas-core.jar" \ -jar "${arthas_lib_dir}/arthas-core.jar" \
-pid ${TARGET_PID} \ -pid ${TARGET_PID} \
-target-ip ${TARGET_IP} \ -target-ip ${TARGET_IP} \