shell脚本错误[:缺少`]'如果条件

时间:2017-04-05 13:24:47

标签: shell

我正在尝试执行以下条件

if [ [ -z "$TC_ID_114" -o "$TC_ID_114" == "yes" || "$PTYPE" == "PROD_LTE_WMP" || "$PTYPE" == "PROD_WCDMA" ] ] && [ "$UTYPE" == "UNIT_FZM" ]; then
    TC_ID_114_STR="Configuring NTP Server IP"
    TC_ID_114_VAR1="2001::2"
    log_tc_start "TC_ID_114" "$TC_ID_114_STR"
    $OBJCLI ip_testsuite $FEATURE $SET_NTP_RULES "$TC_ID_114_VAR1"
    if ! validate_CreateNTP $TC_ID_114_VAR1 "ipv6" ; then
        TC_CUR_RESULT="$SUCC"
    fi
    cat "$IPTS_LOG" ; > "$IPTS_LOG"
    delNTP $TC_ID_114_VAR1
    log_tc_result
    log_tc_end
fi

并收到错误[: missing `]'

0 个答案:

没有答案