vms/recipes/debian/provisionning/quid/update-playbook.sh

14 lines
231 B
Bash
Raw Normal View History

2023-10-20 16:19:23 +02:00
#!/bin/bash
# Clone repository if necessary
if [ ! -d "${REPO_DEST}" ]; then
git clone "${REPO_URL}" "${REPO_DEST}"
fi
cd "${REPO_DEST}"
# Update local repository
git fetch
# Checkout repository ref
git checkout ${REPO_REF}