From: Lennart Poettering Date: Tue, 12 Jun 2018 13:57:51 +0000 (+0200) Subject: hwdb-update: make sure it works when run from meson X-Git-Tag: v239~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5ef342dfedba81c7cb6ab0581cea866f2618c66;p=thirdparty%2Fsystemd.git 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. --- 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 (