From d5ef342dfedba81c7cb6ab0581cea866f2618c66 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 12 Jun 2018 15:57:51 +0200 Subject: [PATCH] hwdb-update: make sure it works when run from meson let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works. --- tools/meson-hwdb-update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/meson-hwdb-update.sh b/tools/meson-hwdb-update.sh index d4ec555beb3..f9ef2417197 100755 --- a/tools/meson-hwdb-update.sh +++ b/tools/meson-hwdb-update.sh @@ -4,9 +4,11 @@ set -eu cd "$1" unset permissive -if [ "$2" = "-p" ]; then +if [ "${2:-}" = "-p" ]; then permissive=1 shift +else + permissive=0 fi if [ "${2:-}" != "-n" ]; then (