chantra / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
83a7c7
From 9aae21d7610a7e8067ae932f36d1c8bb8583fe59 Mon Sep 17 00:00:00 2001
83a7c7
From: Pavlina Moravcova Varekova <pmoravco@redhat.com>
83a7c7
Date: Wed, 5 Jun 2019 06:07:00 +0200
83a7c7
Subject: [PATCH] Use [ ] in condition to avoid sub processes in
83a7c7
 find-debuginfo.sh (#735)
83a7c7
83a7c7
Introduced in commit 1da9e83, spotted by covscan.
83a7c7
83a7c7
Modified to fix another covscan warning
83a7c7
---
83a7c7
 scripts/find-debuginfo.sh | 2 +-
83a7c7
 1 file changed, 1 insertion(+), 1 deletion(-)
83a7c7
83a7c7
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
83a7c7
index 23286139e..d75da1108 100755
83a7c7
--- a/scripts/find-debuginfo.sh
83a7c7
+++ b/scripts/find-debuginfo.sh
83a7c7
@@ -213,7 +213,7 @@ if test -n "$build_id_seed" -a "$no_recompute_build_id" = "true"; then
83a7c7
   exit 2
83a7c7
 fi
83a7c7
 
83a7c7
-if ("$strip_g" = "true") && ("$strip_glibs" = "true"); then
83a7c7
+if [ "$strip_g" = "true" ] && [ "$strip_glibs" = "true" ]; then
83a7c7
   echo >&2 "*** ERROR: -g  and --g-libs cannot be used together"
83a7c7
   exit 2
83a7c7
 fi
83a7c7
-- 
83a7c7
2.21.0
83a7c7