Last active
December 21, 2015 01:28
-
-
Save danielglh/6227830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export STRIKINLY_PROMPT="\e[0;36m[Strikingly]\e[0;00m" | |
strikingly_say() { | |
printf "${STRIKINLY_PROMPT} $*\n" | |
} | |
strikingly_say "Start deploying strikingly developing environment" | |
if [ ! -d $HOME/.strikingly/ ]; then | |
strikingly_say "Directory $HOME/.strikingly/ doesn't exist" | |
mkdir $HOME/.strikingly/ | |
strikingly_say "Directory .strikingly created" | |
fi | |
cd $HOME/.strikingly/ | |
if [ -d $HOME/.strikingly/deployment-scripts/ ]; then | |
if [ -d $HOME/.strikingly/deployment-scripts/.git/ ]; then | |
strikingly_say "Repository strikingly/deployment-scripts exists" | |
strikingly_say "Updating repository strikingly/deployment-scripts from github" | |
cd deployment-scripts | |
git pull | |
else | |
strikingly_say "Repository strikingly/deployment-scripts doesn't exist" | |
strikingly_say "Directory $HOME/.strikingly/deployment-scripts/ exists" | |
strikingly_say "Backing up deployment-scripts/ to deployment-scripts.bak/" | |
mv deployment-scripts deployment-scripts.bak | |
strikingly_say "Cloing strikingly/deployment-scripts repository from github" | |
git clone git@github.com:strikingly/deployment-scripts.git deployment-scripts | |
fi | |
else | |
strikingly_say "Repository strikingly/deployment-scripts doesn't exist" | |
strikingly_say "Cloing strikingly/deployment-scripts repository from github" | |
git clone git@github.com:strikingly/deployment-scripts.git | |
fi | |
$HOME/.strikingly/deployment-scripts/bin/strikinglyde install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment