From: Simon Deziel Date: Fri, 6 Oct 2023 04:27:47 +0000 (-0400) Subject: lxc/checkconfig: remove superfluous (..) around test command (SC2234) X-Git-Tag: v6.0.0~41^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84f03d1d04719c9a54b91ac6bca4371da7ca987;p=thirdparty%2Flxc.git lxc/checkconfig: remove superfluous (..) around test command (SC2234) Signed-off-by: Simon Deziel --- diff --git a/src/lxc/cmd/lxc-checkconfig.in b/src/lxc/cmd/lxc-checkconfig.in index 9a9555eec..e60f27bf9 100755 --- a/src/lxc/cmd/lxc-checkconfig.in +++ b/src/lxc/cmd/lxc-checkconfig.in @@ -156,7 +156,7 @@ if is_set CONFIG_USER_NS; then fi echo -n "Network namespace: " && is_enabled CONFIG_NET_NS echo -if ([ $KVER_MAJOR -lt 4 ]) || ([ $KVER_MAJOR -eq 4 ] && [ $KVER_MINOR -lt 7 ]); then +if [ $KVER_MAJOR -lt 4 ] || ([ $KVER_MAJOR -eq 4 ] && [ $KVER_MINOR -lt 7 ]); then echo -n "Multiple /dev/pts instances: " && is_enabled DEVPTS_MULTIPLE_INSTANCES echo fi @@ -215,7 +215,7 @@ echo -n "Cgroup cpu account: " && is_enabled CONFIG_CGROUP_CPUACCT echo echo -n "Cgroup memory controller: " -if ([ $KVER_MAJOR -ge 3 ] && [ $KVER_MINOR -ge 6 ]) || ([ $KVER_MAJOR -gt 3 ]); then +if ([ $KVER_MAJOR -ge 3 ] && [ $KVER_MINOR -ge 6 ]) || [ $KVER_MAJOR -gt 3 ]; then is_enabled CONFIG_MEMCG else is_enabled CONFIG_CGROUP_MEM_RES_CTLR