#!/bin/bash die() { echo "error: $@"; exit 1; } BUILDSERVER_CONFIG_DIR="/etc/mage-buildserver" source ${BUILDSERVER_CONFIG_DIR}/buildserver.conf [[ ${#@} -ge 1 ]] || die "No param given" for smage in ${@} do ${BUILDSERVER_LIB_DIR}/queue-add.sh "${smage}" done # print list echo echo "Current queue:" ${BUILDSERVER_LIB_DIR}/queue-list.sh