Commit 23491d64 authored by dengyufu's avatar dengyufu

modify download.sh

parent d199099e
...@@ -6,6 +6,7 @@ DIR=`pwd` ...@@ -6,6 +6,7 @@ DIR=`pwd`
AGENT_DIR="pinpoint-agent" AGENT_DIR="pinpoint-agent"
INIT_ENV_FILE_NAME="init_env" INIT_ENV_FILE_NAME="init_env"
COPY_INIT_ENV_FILE_NAME="pinpoint_init_env"
function getFileName(){ function getFileName(){
if [ "$1" == "" ] ; then if [ "$1" == "" ] ; then
...@@ -28,12 +29,13 @@ function unZipTarFile(){ ...@@ -28,12 +29,13 @@ function unZipTarFile(){
} }
function copyInitEnvPage(){ function copyInitEnvPage(){
cp $AGENT_DIR/script/$INIT_ENV_FILE_NAME ./ cp $AGENT_DIR/script/$INIT_ENV_FILE_NAME ./$COPY_INIT_ENV_FILE_NAME
} }
function initEnv(){ function initEnv(){
if [ -f init_env ] ; then if [ -f $COPY_INIT_ENV_FILE_NAME ] ; then
$AGENT_DIR/script/mac_init_env_replay.sh `cat $INIT_ENV_FILE_NAME` $AGENT_DIR/script/mac_init_env_replay.sh `cat $COPY_INIT_ENV_FILE_NAME`
rm -f $COPY_INIT_ENV_FILE_NAME
fi fi
} }
......
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