Ignore:
Timestamp:
Jun 17, 2010, 10:55:14 AM (14 years ago)
Author:
rock
Message:

增加工作路徑的判斷

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/nutchez

    r194 r196  
    1818Tomcat_HOME="/opt/nutchez/tomcat"
    1919NutchEZ_HOME="/home/nutchuser/nutchez"
    20 Work_Path=$(echo $0 | sed 's/client_install//')
     20Work_Path="./"
     21Work_Path_J=0
     22
     23# Roek Path setup
     24echo $0 | grep '/' || Work_Path_J=1
     25if [ "$Work_Path_J" == "0"  ]; then
     26  Work_Path=$(echo $0 | sed 's/nutchez//')
     27fi
    2128
    2229# [Env Declaration] #
Note: See TracChangeset for help on using the changeset viewer.