[PATCH v2 2/3] highlight: declare variables
Ferry Huberts
mailings at hupie.com
Tue Feb 21 13:13:30 CET 2012
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 c930e07..0f97fea 100755
--- a/filters/syntax-highlighting.sh
+++ b/filters/syntax-highlighting.sh
@@ -36,8 +36,8 @@
#
# store filename and extension in local vars
-BASENAME="$1"
-EXTENSION="${BASENAME##*.}"
+declare BASENAME="$1"
+declare EXTENSION="${BASENAME##*.}"
# map Makefile and Makefile.* to .mk
[ "${BASENAME%%.*}" == "Makefile" ] && EXTENSION=mk
--
1.7.7.6
More information about the CGit
mailing list