Shellcheck cleanup

Updates from output of latest version of shellcheck as per SC2268

“Avoid x-prefix in comparisons as it no longer serves a purpose”
https://www.shellcheck.net/wiki/SC2268
This commit is contained in:
Dustin Dettmer
2021-09-01 16:54:23 -07:00
committed by Christian Decker
parent 36baef22e2
commit 6f2e27c768
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
set -e
# When run inside docker (from below), we do build and drop result in /release
if [ x"$1" = x"--inside-docker" ]; then
if [ "$1" = "--inside-docker" ]; then
VER="$2"
git clone /src /build
cd /build

View File

@@ -44,7 +44,7 @@ for SYMBOL; do
# has notleak_ as a declaration, and then an inline).
# Also, prefer local headers over generic ones.
WHERE=$(shopt -s nullglob; grep -nH "^[a-zA-Z0-9_ (),]* [*]*$SYMBOL(" "$UPDIRNAME"/*.h ./*/*.h | head -n1)
if [ x"$WHERE" = x ]; then
if [ -z "$WHERE" ]; then
echo "/* Could not find declaration for $SYMBOL */"
continue
fi