#!/bin/bash source vars.sh mkdir -p "${XDG_BUILDBOT_TMATE}" CONFIG_FILE_LOC="$(mktemp --suffix="-aur-buildbot.conf")" # Check if tmate sessions are empty # TODO: implement concurrent builds if [ -z "$(find "${XDG_BUILDBOT_TMATE}" -maxdepth 0 -empty -exec echo "1" ';')" ]; then echo "Concurrent builds are not supported yet!" exit 0 fi # Write configuration file cat > "${CONFIG_FILE_LOC}" <