Skip to content

Commit

Permalink
lxc-checkconfig: Fix bashism
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
stgraber committed Feb 3, 2022
1 parent 73bc39a commit 903b199
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lxc/cmd/lxc-checkconfig.in
Expand Up @@ -111,7 +111,8 @@ KVER_MINOR=$($CAT $CONFIG | grep '^# Linux.*Kernel Configuration' | \
fi

if [ -z "${KVER_MAJOR}" ]; then
echo "WARNING: Unable to detect version from configuration, assuming latest\n"
echo "WARNING: Unable to detect version from configuration, assuming latest"
echo ""
KVER_MAJOR="100"
KVER_MINOR="0"
fi
Expand Down

0 comments on commit 903b199

Please sign in to comment.