Skip to content

Commit

Permalink
unset env JAVA_TOOL_OPTIONS in scripts (alibaba#1764)
Browse files Browse the repository at this point in the history
  • Loading branch information
robberphex authored Apr 13, 2021
1 parent 8870e16 commit 342c474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/as.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if ["%~1"]==[""] (
goto exit_bat
)

set JAVA_TOOL_OPTIONS
set AGENT_JAR=%BASEDIR%\arthas-agent.jar
set CORE_JAR=%BASEDIR%\arthas-core.jar

Expand Down
1 change: 1 addition & 0 deletions bin/as.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ check_permission()
# reset some options for env
reset_for_env()
{
unset JAVA_TOOL_OPTIONS

# init ARTHAS' lib
mkdir -p "${ARTHAS_LIB_DIR}" \
Expand Down

0 comments on commit 342c474

Please sign in to comment.