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.
This commit is contained in:
Lennart Poettering 2018-06-12 15:57:51 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 38dd5600b3
commit d5ef342dfe
1 changed files with 3 additions and 1 deletions

View File

@ -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 (