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

增加工作路徑的判斷

File:
1 edited

Legend:

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

    r194 r196  
    1818Linux_Version="";
    1919Nutchuser_Passwd="xxxxxxxxxx";
    20 Work_Path=$(echo $0 | sed 's/client_install//')
     20Work_Path="./"
     21Work_Path_J=0
    2122
     23# Work Path Setup
     24echo $0 | grep '/' || Work_Path_J=1
     25if [ "$Work_Path_J" == "0"  ]; then
     26    Work_Path=$(echo $0 | sed 's/client_install//')
     27fi
    2228# Source functions
    2329source $Work_Path/client_install_func.sh
Note: See TracChangeset for help on using the changeset viewer.