From 823d6100747d5779804e109c7253218ea26729ea Mon Sep 17 00:00:00 2001 From: bohung Date: Wed, 24 Aug 2022 14:57:54 +0800 Subject: [PATCH] Fix bug. --- install_orbit_environment.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install_orbit_environment.sh b/install_orbit_environment.sh index 310420c..932d04b 100644 --- a/install_orbit_environment.sh +++ b/install_orbit_environment.sh @@ -84,7 +84,8 @@ else fi # build ImageMagick and install if [ -z $(which convert) ]; then - sudo bash -l -c "tmp_pwd=$(pwd) && cd /root && \ + tmp_pwd="$(pwd)" + sudo bash -l -c "cd /root && \ apt-get install libjpeg62 -y && \ wget -nc http://download.sourceforge.net/libpng/libpng-1.5.13.tar.gz && \ tar xvfz libpng-1.5.13.tar.gz && \ @@ -99,11 +100,12 @@ if [ -z $(which convert) ]; then tar xvfz ImageMagick.tar.gz && \ cd $(ls -d /root/libpng-1.5.13/ImageMagick-7*) && \ chown $USER:$USER . -R && \ - sudo bash -l -c "./configure --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes --disable-shared --with-modules && + ./configure --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes --disable-shared --with-modules && \ make && make install && \ ln -s /usr/local/lib/* /usr/lib/. && \ ln -s /usr/local/lib/pkgconfig/* /usr/lib/pkgconfig/. && \ - ln -s /usr/local/bin/* /usr/bin/. && \ convert -list configure" + ln -s /usr/local/bin/* /usr/bin/. && \ + convert -list configure" cd $tmp_pwd fi ## install rvm