X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fscripts%2Freadhash;h=bffc93fbd00c31a76e9c96fc17dabf0a87c3c9ef;hb=32bda1fb6e7a7571c2567d3b5d575862e2549e3a;hp=cc063a7a2b2ddc3a11af741d6bec4a3042c68957;hpb=d7a3254acedb43995d6a6e769562576cc7ff8639;p=ipfire-2.x.git diff --git a/src/scripts/readhash b/src/scripts/readhash index cc063a7a2b..bffc93fbd0 100644 --- a/src/scripts/readhash +++ b/src/scripts/readhash @@ -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