From 6681d455c2888eb56a0c5f658cb3202cc063df14 Mon Sep 17 00:00:00 2001 From: Pavlina Moravcova Varekova Date: Apr 23 2020 14:26:58 +0000 Subject: Use [ ] in condition to avoid sub processes in find-debuginfo.sh (#735) Introduced in commit 1da9e83, spotted by covscan. Modified to fix another covscan warning --- diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index 6597f88..dd524a9 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" ] && [ "$strip_glibs" = "true" ]; then echo >&2 "*** ERROR: -g and --g-libs cannot be used together" exit 2 fi