0

I am writing a bash script to automate the installation. I am following steps from a guide. Below are the installation steps I need to write in script.

./configure
 make
 make all

I wrote my script like below.

function install_plugin {
          cd $INSTALLATION_FOLDER/some-plugins
          exec ./configure
          make
          make install
       }

The script works till ./configure and stops.

User0123456789
  • 760
  • 2
  • 10
  • 25
  • `configure` should not need `exec`, calling `./configure` should be fine. To use `make`, `make` must be in your `PATH` (it should be), but if not, then you will need to use the full path (e.g. `type -p make`) – David C. Rankin Apr 10 '16 at 16:19
  • Thanks for the help! I re-run the script and it is working fine :). But your suggestion for removing exec is helpful. – Quratul Ain Shafiq Apr 10 '16 at 16:46

0 Answers0