Ignore:
Timestamp:
Jul 1, 2010, 4:33:15 PM (14 years ago)
Author:
shunfa
Message:

修改驗證資料夾及語言檔

File:
1 edited

Legend:

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

    r242 r244  
    1010
    1111
    12 source lang_link
    1312# 需要 master_install 設定的參數區
    1413# Master IP here
     
    3130}
    3231##########end echo function ##########
     32
     33function load_default_lang(){
     34
     35lang=$(locale | grep 'LANG=' | cut -d "=" -f2)
     36
     37# Default: source english
     38. lang/lang_en_US
     39# if locale is zh then source chinese
     40
     41echo $lang | grep 'zh' >> /dev/null && source lang/lang_zh_TW
     42}
     43
     44
    3345
    3446# check root
     
    8092# Main function
    8193function main () {
     94  load_default_lang
    8295  check_root
    8396  show_info "$CR_main_echo_1" #"警告 - 此一程式為移除此用戶端的nutch node, 若您為誤執行此一程式, 請按Ctrl+c離開此程序!"
Note: See TracChangeset for help on using the changeset viewer.