diff options
author | 2018-06-12 15:57:51 +0200 | |
---|---|---|
committer | 2018-06-13 14:20:03 +0200 | |
commit | d5ef342dfedba81c7cb6ab0581cea866f2618c66 (patch) | |
tree | 5f02406f416440035325c83d9b827b4291d0ff0e /tools | |
parent | hwdb: update from upstream (diff) | |
download | systemd-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-x | tools/meson-hwdb-update.sh | 4 |
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 ( |