aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-12 15:57:51 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-13 14:20:03 +0200
commitd5ef342dfedba81c7cb6ab0581cea866f2618c66 (patch)
tree5f02406f416440035325c83d9b827b4291d0ff0e /tools
parenthwdb: update from upstream (diff)
downloadsystemd-d5ef342dfedba81c7cb6ab0581cea866f2618c66.tar.gz
systemd-d5ef342dfedba81c7cb6ab0581cea866f2618c66.tar.bz2
systemd-d5ef342dfedba81c7cb6ab0581cea866f2618c66.zip
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/meson-hwdb-update.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/meson-hwdb-update.sh b/tools/meson-hwdb-update.sh
index d4ec555be..f9ef24171 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 (