From mboxrd@z Thu Jan 1 00:00:00 1970 From: mailings at hupie.com (Ferry Huberts) Date: Tue, 21 Feb 2012 13:13:30 +0100 Subject: [PATCH v2 2/3] highlight: declare variables In-Reply-To: <1329826411-6301-1-git-send-email-mailings@hupie.com> References: <1329826411-6301-1-git-send-email-mailings@hupie.com> Message-ID: <1329826411-6301-2-git-send-email-mailings@hupie.com> From: Ferry Huberts Signed-off-by: Ferry Huberts --- 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