From 0642c46ade82fbfba1023325789911d3e5513f81 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 06 2011 21:52:11 +0000 Subject: Update `cli_getTTFont.sh': - Fix variable pre-increment definition. --- diff --git a/Scripts/Functions/cli_getTTFont.sh b/Scripts/Functions/cli_getTTFont.sh index 62c2ce9..2a3302a 100755 --- a/Scripts/Functions/cli_getTTFont.sh +++ b/Scripts/Functions/cli_getTTFont.sh @@ -36,9 +36,9 @@ function cli_getTTFont { local FONT_FILE='' # Define list of patterns used to build the list of TTF files. - FONT_PATTERNS[++((${#FONT_PATTERNS[*]}))]="/${1}\.ttf$" - FONT_PATTERNS[++((${#FONT_PATTERNS[*]}))]="sans\.ttf$" - FONT_PATTERNS[++((${#FONT_PATTERNS[*]}))]="\.ttf$" + FONT_PATTERNS[((++${#FONT_PATTERNS[*]}))]="/${1}\.ttf$" + FONT_PATTERNS[((++${#FONT_PATTERNS[*]}))]="sans\.ttf$" + FONT_PATTERNS[((++${#FONT_PATTERNS[*]}))]="\.ttf$" # Define directory location where fonts are installed in your # workstation.