I'm creating a basic bash script which deploy a simple webapp. My current code is as follows.
#!/bin/bash
clear
echo "********************************************";
echo "Hello, I'm going to deploy the QuizProject";
echo "********************************************";
git pull --all;
#Only need to execute if option is present
composer install;
echo "********************************************";
echo "All the jobs done! Cheers";
echo "********************************************";
At the moment I'm running this script in the command as
bash deploy.sh
But this will execute all the commands in the bash file.
I want to make it if specific command is passed then only run the "composer install"
bash -composer deploy.sh