summaryrefslogtreecommitdiff
path: root/tools/update-hwdb.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-04-20 13:02:02 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2021-04-20 20:11:13 +0200
commit3b6fd3c1dea070cb1882b8810e18a45158a356f2 (patch)
tree1a42abd78e9acf4cf528c6e0e8998652c87ede9d /tools/update-hwdb.sh
parent437e889b18743ea4d594521829e43b6067ce9036 (diff)
downloadsystemd-3b6fd3c1dea070cb1882b8810e18a45158a356f2.tar.gz
tools: shellcheck-ify most of the tool scripts
Diffstat (limited to 'tools/update-hwdb.sh')
-rwxr-xr-xtools/update-hwdb.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/update-hwdb.sh b/tools/update-hwdb.sh
index 773a959dcf..abbbb82f4b 100755
--- a/tools/update-hwdb.sh
+++ b/tools/update-hwdb.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eu
-cd "$1"
+cd "${1:?}"
unset permissive
if [ "${2:-}" = "-p" ]; then
@@ -28,6 +28,6 @@ if [ "${2:-}" != "-n" ]; then (
set -x
./acpi-update.py >20-acpi-vendor.hwdb.base
patch -p0 -o- 20-acpi-vendor.hwdb.base <20-acpi-vendor.hwdb.patch >20-acpi-vendor.hwdb
-! diff -u 20-acpi-vendor.hwdb.base 20-acpi-vendor.hwdb >20-acpi-vendor.hwdb.patch
+diff -u 20-acpi-vendor.hwdb.base 20-acpi-vendor.hwdb >20-acpi-vendor.hwdb.patch && exit 1
./ids_parser.py