Bugfix: Added quotes around the [[:alnum:]] in the code to count the
defined colors.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# ~/scripts/xtermmaker.sh
|
||||
# $Id: xtermmaker.sh,v 1.8 2005/07/19 12:12:37 heinzel Exp $
|
||||
VERSION='XTermMaker Version 4.0 $Revision: 1.8 $ ($Date: 2005/07/19 12:12:37 $ $Author: heinzel $)'
|
||||
# $Id: xtermmaker.sh,v 1.9 2006/02/10 11:43:53 heinzel Exp $
|
||||
VERSION='XTermMaker Version 4.1 $Revision: 1.9 $ ($Date: 2006/02/10 11:43:53 $ $Author: heinzel $)'
|
||||
|
||||
### config ###
|
||||
CONFIG="${HOME}/.xtermmakerrc"
|
||||
@@ -238,7 +238,7 @@ hpos="$hoffset"
|
||||
vpos="$voffset"
|
||||
|
||||
eval colors="\"\${THEME_${THEME}%,}\""
|
||||
ncolors="`echo \"$colors\" | tr -d [[:alnum:]]`"
|
||||
ncolors="`echo \"$colors\" | tr -d '[[:alnum:]]'`"
|
||||
ncolors="${#ncolors}"
|
||||
ncolors="`expr $ncolors + 1`"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user