summaryrefslogtreecommitdiff
path: root/tools/update-hwdb-autosuspend.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-autosuspend.sh
parent437e889b18743ea4d594521829e43b6067ce9036 (diff)
downloadsystemd-3b6fd3c1dea070cb1882b8810e18a45158a356f2.tar.gz
tools: shellcheck-ify most of the tool scripts
Diffstat (limited to 'tools/update-hwdb-autosuspend.sh')
-rwxr-xr-xtools/update-hwdb-autosuspend.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/update-hwdb-autosuspend.sh b/tools/update-hwdb-autosuspend.sh
index 7d5a9a8cf5..c69773087d 100755
--- a/tools/update-hwdb-autosuspend.sh
+++ b/tools/update-hwdb-autosuspend.sh
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eu
-cd "$1"
+cd "${1:?}"
(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
| base64 -d > tools/chromiumos/gen_autosuspend_rules.py