fix GetLetter

pull/14/head
Tom Early 6 years ago
parent 78238513e6
commit 2e929c9e5a

@ -18,9 +18,11 @@
# We set this to spaces, it will be set later # We set this to spaces, it will be set later
GetLetter () { GetLetter () {
local i
if [[ $1 == +([0-9]) ]]; then if [[ $1 == +([0-9]) ]]; then
if [ $1 -gt 0 ] && [ $1 -le 26 ]; then i=`expr $1 - 1`
LETTER=${LETTERS[$1-1]} if [ $i -ge 0 ] && [ $i -lt 26 ]; then
LETTER=${LETTERS[$i]}
return return
fi fi
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.