1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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

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 (