ds_package_as_git_repo() { if [ "$1" = "" ]; then error "package: git: Too few arguments given" fi git init 2>&1 | indent git config user.name "Deploy Scripts" git config user.email "deploy-scripts@masalachai.net" git add . 2>&1 | indent git commit . -m "push for deployment" 2>&1 | indent if [ -d $PROJECT_SCRIPTS_DIR ]; then cp -r $PROJECT_SCRIPTS_DIR "$1/deploy" cd "$1" git add $DS_DIR/scripts 2>&1 | indent git commit . -m "added project scripts to server side deployment" 2>&1 | indent info "Copied project deployment scripts to server side deployment" fi DEPLOY_BRANCH="master" }