File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -142,16 +142,10 @@ if [[ "${PHP}" == "" ]];then
142
142
fi
143
143
144
144
declare -a BEFORE_SCRIPT=()
145
- BEFORE_SCRIPT_STRING=" $( echo " ${JOB} " | jq -rc ' (.before_script // [])[]' | tr -d ' \n' ) "
146
- if [[ " ${BEFORE_SCRIPT_STRING} " != " " ]]; then
147
- readarray -t BEFORE_SCRIPT=" ${BEFORE_SCRIPT_STRING} "
148
- fi
145
+ readarray -t BEFORE_SCRIPT < <( echo " ${JOB} " | jq -rc ' (.before_script // [])[]' )
149
146
150
147
declare -a AFTER_SCRIPT=()
151
- AFTER_SCRIPT_STRING=" $( echo " ${JOB} " | jq -rc ' (.after_script // [])[]' | tr -d ' \n' ) "
152
- if [[ " ${AFTER_SCRIPT_STRING} " != " " ]]; then
153
- readarray -t AFTER_SCRIPT=" ${AFTER_SCRIPT_STRING} "
154
- fi
148
+ readarray -t AFTER_SCRIPT < <( echo " ${JOB} " | jq -rc ' (.after_script // [])[]' )
155
149
156
150
157
151
echo " Marking PHP ${PHP} as configured default"
You can’t perform that action at this time.
0 commit comments