log: to many warnings because of incorrect regex

This commit is contained in:
Lucas Briese 2023-12-01 13:23:28 +01:00
parent 828f56cf22
commit 1a359f2203

View File

@ -14,7 +14,7 @@ function configReplace() {
source="$1" source="$1"
target="\"$2\"" target="\"$2\""
if ! echo "$2" | grep -qe "^[a-zA-Z0-9_-]+$"; then if ! echo "$2" | grep -qe "^[a-zA-Z0-9_-]*$"; then
echo "[initConfig.sh]Warning your configured value for $source doesn't match regex ^[a-zA-Z0-9_-]+$. Special symbols could crash this script because they are not sanitized." echo "[initConfig.sh]Warning your configured value for $source doesn't match regex ^[a-zA-Z0-9_-]+$. Special symbols could crash this script because they are not sanitized."
fi fi