[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgit
Subject:    [PATCH v3 2/2] syntax-highlight: fix POSIX '==' issues
From:       mailings () hupie ! com (Ferry Huberts)
Date:       2012-04-05 10:12:43
Message-ID: 1333620763-17079-2-git-send-email-mailings () hupie ! com
[Download RAW message or body]

From: Ferry Huberts <ferry.huberts at pelagic.nl>

Signed-off-by: Ferry Huberts <ferry.huberts at pelagic.nl>
---
 filters/syntax-highlighting.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/filters/syntax-highlighting.sh b/filters/syntax-highlighting.sh
index 8b09180..1178502 100755
--- a/filters/syntax-highlighting.sh
+++ b/filters/syntax-highlighting.sh
@@ -39,11 +39,11 @@
 BASENAME="$1"
 EXTENSION="${BASENAME##*.}"
 
-[ "${BASENAME}" == "${EXTENSION}" ] && EXTENSION=txt
+[ "${BASENAME}" = "${EXTENSION}" ] && EXTENSION=txt
 [ -z "${EXTENSION}" ] && EXTENSION=txt
 
 # map Makefile and Makefile.* to .mk
-[ "${BASENAME%%.*}" == "Makefile" ] && EXTENSION=mk
+[ "${BASENAME%%.*}" = "Makefile" ] && EXTENSION=mk
 
 # highlight versions 2 and 3 have different commandline options. Specifically,
 # the -X option that is used for version 2 is replaced by the -O xhtml option
-- 
1.7.7.6




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic