mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-13 11:04:29 +01:00
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:
committed by
Christian Decker
parent
36baef22e2
commit
6f2e27c768
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user