Commit 5c1a230f authored by dengyufu's avatar dengyufu

modify download.sh

parent 5c47a044
......@@ -32,14 +32,18 @@ function copyInitEnvPage(){
}
function initEnv(){
if [ -d init_env ] ; then
if [ -f init_env ] ; then
$AGENT_DIR/script/mac_init_env_replay.sh `cat $INIT_ENV_FILE_NAME`
fi
}
function printJavaagent(){
echo "请使用命令进行初始化如 : $AGENT_DIR/script/mac_init_env_replay.sh i1"
}
function printBootstrap(){
bootstrapJarName=`ls $AGENT_DIR | grep pinpoint-bootstrap`
echo "please init env use : $AGENT_DIR/mac_init_env_replay.sh"
echo "当前jar包已经更新,请更新java启动参数为:-javaagent:$DIR/$AGENT_DIR/$bootstrapJarName"
}
function downloadTarFileIfEmpty(){
......@@ -72,6 +76,7 @@ function refreshTarFile(){
downloadTarFile $tar_file_name
unZipTarFile $tar_file_name
initEnv
printBootstrap
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment