Skip to content

Commit eccc149

Browse files
Omranicbestlong
authored andcommitted
Fix current shell on root when installing svgo (laradock#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
1 parent 9cb7624 commit eccc149

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workspace/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ ARG INSTALL_IMAGE_OPTIMIZERS=false
677677
RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
678678
apt-get install -y jpegoptim optipng pngquant gifsicle && \
679679
if [ ${INSTALL_NODE} = true ]; then \
680-
. ~/.bashrc && npm install -g svgo \
680+
exec bash && . ~/.bashrc && npm install -g svgo \
681681
;fi\
682682
;fi
683683

0 commit comments

Comments
 (0)