fix: continue init if variable is not found in config #27

This commit is contained in:
Lucas Briese 2023-11-30 14:05:43 +01:00
parent 4ea87f7d24
commit e7aecfe6cb

View File

@ -14,7 +14,7 @@ function configReplace() {
source="$1"
target="\"$2\""
count=$(grep -Poc "($source).+" "${CFG_PATH}")
count=$(grep -Poc "($source).+" "${CFG_PATH}" || echo 0)
echo "[initConfig.sh]Request for replacing $source to $target, source is found $count times"