Use this for files, scripts, aliases, etc to deploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
348 B

#!/bin/bash
#Create git directory if it doesn't exist
if [ ! -d ~/git ]
then
mkdir -p ~/git
fi
#Clone ansible-playbook repo
if [ ! -d ~/git/ansible-fmb ]
then
git clone deploy:/tombstones/ansible-fmb.git ~/git/ansible-fmb
#Pull most recent updates ansible-playbook repo
elif [ -d ~/git/ansible-fmb ]
then
cd ~/git/ansible-fmb && git pull
fi