]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb-update: make sure it works when run from meson
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Jun 2018 13:57:51 +0000 (15:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 13 Jun 2018 12:20:03 +0000 (14:20 +0200)
let's make the argument optional again, so that the command line "ninja
-C build hwdb-update" runs works.

tools/meson-hwdb-update.sh

index d4ec555beb383398361bffe6be63429843ba6f1b..f9ef24171974b25c74c897cde73038d5ce9a0a52 100755 (executable)
@@ -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 (