summaryrefslogtreecommitdiff
path: root/utils/lxc.sh
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-04-24 07:14:35 +0200
committerGitHub <noreply@github.com>2021-04-24 07:14:35 +0200
commita7b9eca98a196052bed8168ff11d13456851b04f (patch)
treefcafca4b1c2b95f5e789275d7fd64b9d578c13fb /utils/lxc.sh
parentfe064a5c390f7b85aa0e7b207b38129cca2ccc17 (diff)
parentabd423cbf8fd221c855eeabc5f3a61b7954e3961 (diff)
Merge pull request #8 from return42/manage-script
Replace Makefile boilerplate by shell scripts
Diffstat (limited to 'utils/lxc.sh')
-rwxr-xr-xutils/lxc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/lxc.sh b/utils/lxc.sh
index 79cb1c04f..f065bf3c7 100755
--- a/utils/lxc.sh
+++ b/utils/lxc.sh
@@ -142,11 +142,11 @@ main() {
local _usage="unknown or missing $1 command $2"
# don't check prerequisite when in recursion
- if [[ ! $1 == __* ]]; then
+ if [[ ! $1 == __* ]] && [[ ! $1 == --help ]]; then
if ! in_container; then
! required_commands lxc && lxd_info && exit 42
fi
- [[ -z $LXC_SUITE ]] && err_msg "missing LXC_SUITE" && exit 42
+ [[ -z $LXC_SUITE ]] && err_msg "missing LXC_SUITE" && exit 42
fi
case $1 in