From cfd9ccbf3cb25dfbfe77e26fc72213ee4887818e Mon Sep 17 00:00:00 2001 From: Ben Stern Date: Tue, 4 Jun 2019 14:37:36 -0400 Subject: [PATCH] Fix syntax error under non-Debian-based distros The missing quote marks around variables that may be empty cause the shell to throw an error running `configure`. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a866c4b..3bd0450 100644 --- a/configure.ac +++ b/configure.ac @@ -51,8 +51,8 @@ AC_SUBST(DISTRIB_ID) AC_SUBST(DISTRIB_RELEASE) DISTRIB_VERSION_PARTS=(${DISTRIB_RELEASE//./ }) -if test ${DISTRIB_ID} = Ubuntu; then -if ((${DISTRIB_VERSION_PARTS[[0]]} >= 16)); then +if test "${DISTRIB_ID}" = Ubuntu; then +if (("${DISTRIB_VERSION_PARTS[[0]]}" >= 16)); then AC_SUBST(LXCPACKAGE, lxc1) else AC_SUBST(LXCPACKAGE, lxc)