From 8ba4ef327e45252e0c85990d753396aa98366fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 12 Mar 2021 16:37:17 +0100 Subject: configure: use portable AND man:test(1) NOTE: Binary -a and -o are inherently ambiguous. Use 'test EXPR1 && test EXPR2' or 'test EXPR1 || test EXPR2' instead. Also fix indent --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 95b01143..b1eddbe7 100644 --- a/configure.ac +++ b/configure.ac @@ -319,10 +319,10 @@ esac AC_ARG_WITH([os-release], [AS_HELP_STRING([--with-os-release=FILE], - [location of an os-release file @<:@default=/etc/os-release@:>@])], + [location of an os-release file @<:@default=/etc/os-release@:>@])], [], [with_os_release=/etc/os-release]) -if test -n "$with_os_release" -a ! -f "$with_os_release"; then +if test -n "$with_os_release" && test ! -f "$with_os_release"; then if test -f "/usr/lib/os-release"; then with_os_release="/usr/lib/os-release" fi -- cgit v1.2.3