Simon Zeyer c0117e6699
Some checks failed
build / Build Checkmk package (push) Failing after 32s
build-release / Build Release Package (push) Failing after 35s
Lint / flake8_py3 (push) Failing after 16s
pytest / pytest (push) Failing after 33s
init first version of pbs_special_agent
2026-03-04 21:13:32 +00:00

24 lines
692 B
Bash
Executable File

#!/usr/bin/bash
TEMPDIR=$(mktemp --directory)
cleanup() {
echo "Removing $TEMPDIR"
rm -rf $TEMPDIR
}
trap cleanup EXIT
git -C $TEMPDIR clone https://github.com/Yogibaer75/checkmk_template.git
CMD="rsync --archive --cvs-exclude --no-owner --no-group --no-times --verbose"
if [ -e ".devcontainer/template-sync.conf" ]; then
CMD="${CMD} --filter='merge .devcontainer/template-sync.conf'"
fi
if [ -e "${TEMPDIR}/checkmk_template/.devcontainer/template-sync-includes.conf" ]; then
CMD="${CMD} --filter='merge ${TEMPDIR}/checkmk_template/.devcontainer/template-sync-includes.conf'"
fi
CMD="${CMD} --filter='exclude *' ${TEMPDIR}/checkmk_template/ $(pwd)/"
bash -c "$CMD"
echo $CMD