浏览代码

tls mk cert script: typo fix

Andrei Pelinescu-Onciul 16 年之前
父节点
当前提交
8205f043c4
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      modules/tls/sip-router_cert.sh
  2. 2 2
      modules_s/tls/ser_cert.sh

+ 2 - 2
modules/tls/sip-router_cert.sh

@@ -28,12 +28,12 @@ MAILNAME=`cat /etc/mailname 2> /dev/null || echo $FQDN`
 
 # test if we have the normal or enhanced getopt
 getopt -T >/dev/null
-if [ $? == 4 ]; then
+if [ $? = 4 ]; then
 	LONGOPTS_SUPPORTED=1
 fi
 
 longopts() {
-	if [ -z "${LONGOPTS_SUPPORTED}"]; then
+	if [ -z "${LONGOPTS_SUPPORTED}" ]; then
 		exit;
 	fi
 	case "$1" in

+ 2 - 2
modules_s/tls/ser_cert.sh

@@ -28,12 +28,12 @@ MAILNAME=`cat /etc/mailname 2> /dev/null || echo $FQDN`
 
 # test if we have the normal or enhanced getopt
 getopt -T >/dev/null
-if [ $? == 4 ]; then
+if [ $? = 4 ]; then
 	LONGOPTS_SUPPORTED=1
 fi
 
 longopts() {
-	if [ -z "${LONGOPTS_SUPPORTED}"]; then
+	if [ -z "${LONGOPTS_SUPPORTED}" ]; then
 		exit;
 	fi
 	case "$1" in