We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac66a44 commit 4c9fda0Copy full SHA for 4c9fda0
VERSION
@@ -1 +1 @@
1
-2.0.0
+2.0.1
overlay/usr/lib/bcg/inc/php-replace-ini.sh
@@ -1,6 +1,4 @@
-#!/bin/sh
2
-
3
-set -euo pipefail
+#!/bin/bash
4
5
6
#======================================================================================================================
@@ -14,12 +12,14 @@ set -euo pipefail
14
12
replace-ini () {
15
13
16
# get array and file
17
- local -n ARR=${1}
+ local -n A=${1}
18
FILE=${2}
19
+ bcg-debug "Replacing configuration values in ${FILE}."
+
20
# loop
21
for KEY in ${!A[@]} ; do
22
- VAL=${ARR[$KEY]}
+ VAL=${A[$KEY]}
23
if [ ! -z "${VAL}" ] ; then
24
bcg-debug "${KEY}=${VAL}." "replace-ini"
25
sed -i "s|^;\?${KEY}.*$|${KEY} = ${VAL}|i" ${FILE}
0 commit comments