Update utils.sh

fix "syntax error near unexpected token `>'"
This commit is contained in:
有张纸 2015-03-06 15:45:04 +08:00
parent dae3cd5031
commit b0cb4fe798

View file

@ -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}
}