Skip to content

Instantly share code, notes, and snippets.

@html
Created May 11, 2013 09:56
Show Gist options
  • Save html/5559481 to your computer and use it in GitHub Desktop.
Save html/5559481 to your computer and use it in GitHub Desktop.
Small piece of code used to deploy apps
function install-app(){
DIR_NAME="`echo "$1" | grep -o "\([^/]\+\?\)\.git" | sed -e s/.git//`"
echo "Cloning repository"
git clone "$1" && cd $DIR_NAME;
git submodule update --init
}
install-app $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment