Ignore:
Timestamp:
Jun 25, 2010, 2:24:39 PM (14 years ago)
Author:
waue
Message:

更改檢查work_path 的路徑設定方法
檢查更新流程

File:
1 edited

Legend:

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

    r220 r224  
    1818Linux_Version="";
    1919Nutchuser_Passwd="xxxxxxxxxx";
    20 Work_Path="./"
    21 Work_Path_J=0
    2220
     21Work_Path=`dirname "$0"`
     22
     23if [ -f $Work_Path/client_install_func.sh ];then
     24  Work_Path=`cd "$Work_Path"; pwd`
     25elif [ -f $Work_Path/bin/client_install_func.sh ];then
     26  Work_Path=`cd "$Work_Path/bin"; pwd`;
     27else
     28  echo "Import the installation libraries of client Error!!!"
     29  exit 1;
     30fi
     31
     32#Work_Path="./"
     33#Work_Path_J=0
    2334# Work Path Setup
    24 echo $0 | grep '/' || Work_Path_J=1
    25 if [ "$Work_Path_J" == "0"  ]; then
    26     Work_Path=$(echo $0 | sed 's/client_install//')
    27 fi
    28 # Source functions
    29 #if [ ! -f $Work_Path/client_install_func.sh ];then
    30 #  scp
     35#echo $0 | grep '/' || Work_Path_J=1
     36#if [ "$Work_Path_J" == "0"  ]; then
     37#    Work_Path=$(echo $0 | sed 's/client_install//')
    3138#fi
     39
    3240source $Work_Path/client_install_func.sh;
    33  
    3441
    3542# Language Choice
Note: See TracChangeset for help on using the changeset viewer.