pull() {
sudo rm -rf /home/git-repo/BigDinosaur
START_HERE="/home/git-repo";
cd $START_HERE;
echo -e "\nPulling down latest for $START_HERE\n";
sudo git clone https://BigDinosaur@github.com/BigDinosaur/BigDinosaur.git;
cd $START_HERE;
}
case $1 in
pull)
pull
;;
save it in file bddeploy.sh
To execute issue following command
sh bddeploy.sh pull
No comments:
Post a Comment