From 24c3d73a5316989e5f78a72527e99fdb01979fe6 Mon Sep 17 00:00:00 2001 From: Eric Keller Date: Tue, 15 Dec 2015 17:35:25 +0100 Subject: [PATCH] fix redirection typo to ${LOG} This commit fixes the redirection of std error to the ${LOG} file. It was starting all lxc command in background, resulting in unpredictable failures. --- common/utils.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/utils.sh b/common/utils.sh index fda69c6..ef25f46 100644 --- a/common/utils.sh +++ b/common/utils.sh @@ -3,21 +3,21 @@ utils.lxc.attach() { cmd="$@" log "Running [${cmd}] inside '${CONTAINER}' container..." - (lxc-attach -n ${CONTAINER} -- $cmd) & >> ${LOG} + (lxc-attach -n ${CONTAINER} -- $cmd) &>> ${LOG} } utils.lxc.start() { - lxc-start -d -n ${CONTAINER} & >> ${LOG} || true + lxc-start -d -n ${CONTAINER} &>> ${LOG} || true } utils.lxc.stop() { - lxc-stop -n ${CONTAINER} & >> ${LOG} || true + lxc-stop -n ${CONTAINER} &>> ${LOG} || true } utils.lxc.destroy() { - lxc-destroy -n ${CONTAINER} & >> ${LOG} + lxc-destroy -n ${CONTAINER} &>> ${LOG} } utils.lxc.create() { - lxc-create -n ${CONTAINER} "$@" & >> ${LOG} + lxc-create -n ${CONTAINER} "$@" &>> ${LOG} }