Commit eccc149f authored by Abdelrahman Omran's avatar Abdelrahman Omran Committed by Shao Yu-Lung (Allen)

Fix current shell on root when installing svgo (#1644)

This fix the following errors:
/bin/sh: 13: /root/.bashrc: shopt: not found
/bin/sh: 21: /root/.bashrc: shopt: not found
/bin/sh: 103: /root/.bashrc: source: not found
parent 9cb7624d
......@@ -677,7 +677,7 @@ ARG INSTALL_IMAGE_OPTIMIZERS=false
RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
apt-get install -y jpegoptim optipng pngquant gifsicle && \
if [ ${INSTALL_NODE} = true ]; then \
. ~/.bashrc && npm install -g svgo \
exec bash && . ~/.bashrc && npm install -g svgo \
;fi\
;fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment