#!/bin/sh if [ ! -d /git/.git ]; then echo "No repo found, emptying /git/ directory" rm -r /git/* echo "Cloning $GIT_REPO_URL into /git" git clone -b "$GIT_BRANCH" --single-branch "$GIT_REPO_URL" /git else echo "Updating /git" git pull fi