Skip to content

Commit 664aced

Browse files
Merge pull request #16 from glensc/patch-1
Optimize newline handling for php.ini files
2 parents 034a005 + ddf4c8e commit 664aced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ if [ -x ".laminas-ci/pre-install.sh" ];then
134134
fi
135135

136136
EXTENSIONS=$(echo "${JOB}" | jq -r ".extensions | map(\"php${PHP}-\"+.) | join(\" \")")
137-
INI=$(echo "${JOB}" | jq -r '.ini | join("{NL}")')
137+
INI=$(echo "${JOB}" | jq -r '.ini | join("\n")')
138138
DEPS=$(echo "${JOB}" | jq -r '.dependencies')
139139

140140
if [[ "${EXTENSIONS}" != "" ]];then
@@ -160,7 +160,7 @@ fi
160160

161161
if [[ "${INI}" != "" ]];then
162162
echo "Installing php.ini settings"
163-
echo $INI | sed "s/{NL}/\n/g" > /etc/php/${PHP}/cli/conf.d/99-settings.ini
163+
echo "$INI" > /etc/php/${PHP}/cli/conf.d/99-settings.ini
164164
fi
165165

166166
echo "PHP version: $(php --version)"

0 commit comments

Comments
 (0)