fix: continue init if variable is not found in config #27
This commit is contained in:
parent
4ea87f7d24
commit
e7aecfe6cb
@ -14,7 +14,7 @@ function configReplace() {
|
|||||||
source="$1"
|
source="$1"
|
||||||
target="\"$2\""
|
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"
|
echo "[initConfig.sh]Request for replacing $source to $target, source is found $count times"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user