7
if [ -n "${_COMMAND}" ]
11
echo "Usage: ${0} COMMAND CONTAINER"
15
if [ ! -x "$(which lxc-${_COMMAND} 2>/dev/null)" ]
17
echo "E: lxc-${_COMMAND} - no such command"
23
if [ -n "${_CONTAINER}" ]
27
if ! lxc-ls | grep -qs ^${_CONTAINER}$
29
echo "E: ${_CONTAINER} - no such container"
33
_OPTIONS="--name ${_CONTAINER}"
35
echo "Usage: ${0} COMMAND CONTAINER"
39
lxc-${_COMMAND} ${_OPTIONS} ${@}