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