From b0cb4fe798ce7bad934a00fb74d97fceaad4d255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E5=BC=A0=E7=BA=B8?= Date: Fri, 6 Mar 2015 15:45:04 +0800 Subject: [PATCH] Update utils.sh fix "syntax error near unexpected token `>'" --- common/utils.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/utils.sh b/common/utils.sh index e7a7f9f..fda69c6 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} }