diff --git a/tools/build-release.sh b/tools/build-release.sh index 25124e5ae..86a968f77 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -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 diff --git a/tools/mockup.sh b/tools/mockup.sh index 81d798e61..c98eb1116 100755 --- a/tools/mockup.sh +++ b/tools/mockup.sh @@ -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