Skip to content

Commit

Permalink
fix: xdebug step condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pifou25 committed May 10, 2024
1 parent 06b36e6 commit cc5f2db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ VOLUME ${WEBSERVER_HOME}/log
# install xdebug-3.0.4 for php7.3 and 3.3.2 for php8.2
# check https://xdebug.org/docs/compat
COPY xdebug.ini /tmp/xdebug.ini
RUN if [ -n ${XDEBUG} ] ; then \
RUN if [[ -n ${XDEBUG} ]] ; then \

Check failure on line 125 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / initStep

SC2072 error: Decimals are not supported. Either use integers only, or use bc or awk to compare.
pecl install redis-5.3.4 \
&& pecl install $(if [ $PHP -eq 8.2 ] ; then echo xdebug-3.3.2 ; else echo xdebug-3.3.2 ; fi) \
&& pecl install $(if [[ "${PHP}" -eq "8.2" ]] ; then echo "xdebug-3.3.2" ; else echo "xdebug-3.3.2" ; fi) \
&& docker-php-ext-enable redis xdebug \
&& mv /tmp/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini ; \
fi
Expand Down

0 comments on commit cc5f2db

Please sign in to comment.