Skip to content

Commit c19f55f

Browse files
committed
Fix broken variable checking
1 parent f73a769 commit c19f55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockerfiles/Dockerfile.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN set -eux; \
2424
; \
2525
\
2626
# set pecl to use http_proxy if set
27-
if [ -n ${http_proxy} ]; then pear config-set http_proxy ${http_proxy:-""}; fi; \
27+
if [ ! -z ${http_proxy-} ]; then pear config-set http_proxy ${http_proxy:-""}; fi; \
2828
pecl install -o -f redis-5.3.7; \
2929
docker-php-ext-install -j"$(nproc)" pdo pdo_pgsql; \
3030
docker-php-ext-enable redis; \

0 commit comments

Comments
 (0)