#!/bin/bash -x BRANCH=Clients_public rm -rf artifact_folder mkdir artifact_folder || exit 1 git init artifact_folder/teems_code git push artifact_folder/teems_code ${BRANCH} ( cd artifact_folder/teems_code && git checkout ${BRANCH} ) rm -rf artifact_folder/teems_code/.git ( cd artifact_folder && fakeroot zip -r teems_code.zip teems_code -x teems_code/mkzip ) rm -rf artifact_folder/teems_code