]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install: suppress bogus shellcheck hint 23881/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 2 Jul 2022 12:55:05 +0000 (14:55 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Jul 2022 07:24:43 +0000 (09:24 +0200)
I don't quite understand this, but '{ ! true; }' is not the same as '( ! true )'.
In interactive mode, it seems to work as expected. But in a script, it doesn't.

src/kernel-install/test-kernel-install.sh

index b350b4d1ef43d065baa8dede898d9cfa3f80e366..eda3eaaebf7b038f4234f55f1fdad5f2c33da406 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 # SPDX-License-Identifier: LGPL-2.1-or-later
+# shellcheck disable=SC2235
 set -eu
 set -o pipefail