winlin

remove the sudo of log.

@@ -38,7 +38,7 @@ failed_msg(){ @@ -38,7 +38,7 @@ failed_msg(){
38 38
39 function check_log(){ 39 function check_log(){
40 log_dir="`dirname $log`" 40 log_dir="`dirname $log`"
41 - (mkdir -p ${log_dir} && sudo chmod 777 ${log_dir} && touch $log) 41 + (mkdir -p ${log_dir} && chmod 777 ${log_dir} && touch $log)
42 ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "create log failed, ret=$ret"; return $ret; fi 42 ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "create log failed, ret=$ret"; return $ret; fi
43 ok_msg "create log( ${log} ) success" 43 ok_msg "create log( ${log} ) success"
44 44