From 997cc2a0f8f3528f5f08cb75cb05442345c39c29 Mon Sep 17 00:00:00 2001 From: Pavlina Moravcova Varekova Date: Wed, 5 Jun 2019 06:07:00 +0200 Subject: [PATCH] Use [ ] in condition to avoid sub processes in find-debuginfo.sh (#735) Introduced in commit d0ee451, spotted by covscan. --- scripts/find-debuginfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index 2328613..d75da11 100755 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -213,7 +213,7 @@ if test -n "$build_id_seed" -a "$no_recompute_build_id" = "true"; then exit 2 fi -if ("$strip_g" = "true") && ("$strip_glibs" = "true"); then +if [ "$strip_g" = "true" -a "$strip_glibs" = "true" ]; then echo >&2 "*** ERROR: -g and --g-libs cannot be used together" exit 2 fi -- 2.43.7