readhash: allow % character in config files.

This commit is contained in:
Arne Fitzenreiter
2013-02-14 18:59:42 +01:00
parent 40d3e72956
commit 37dd0cd2a2

View File

@@ -13,7 +13,7 @@ VARNAME='[A-Za-z_][A-Za-z0-9_]*'
# For the assigned value we only accept a limited number of characters - none
# of which are shell metachars
VARCHARS='A-Za-z0-9=/,.:_@#+-'
VARCHARS='A-Za-z0-9=/,.:%_@#+-'
VARVAL="[${VARCHARS}]*"
sed -ne "s/\(${VARNAME}\)=\(${VARVAL}\)$/\1=\2/p" $1