]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Don't not lint kernel-install 23377/head
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Sat, 14 May 2022 13:12:14 +0000 (15:12 +0200)
committerнаб <nabijaczleweli@nabijaczleweli.xyz>
Sat, 14 May 2022 13:21:34 +0000 (15:21 +0200)
.github/workflows/linter.yml
src/kernel-install/90-loaderentry.install

index 0956661512c90e3cb3ebe73d1a9473c592880df8..ecdd7970d2730f8cf6c3d107c4b070d5a0cfdbf7 100644 (file)
@@ -36,11 +36,9 @@ jobs:
           # Excludes:
           #   - man/.* - all snippets in man pages (false positives due to
           #              missing shebangs)
-          #   - kernel-install/.* - false-positives for dropins (and I'm afraid
-          #                         to touch kernel-install)
           #   - .*\.(in|SKELETON) - all template/skeleton files
           #   - tools/coverity\.sh - external file (with some modifications)
-          FILTER_REGEX_EXCLUDE: .*/(man/.*|src/kernel-install/.*|.*\.(in|SKELETON)|tools/coverity\.sh)$
+          FILTER_REGEX_EXCLUDE: .*/(man/.*|.*\.(in|SKELETON)|tools/coverity\.sh)$
           VALIDATE_ALL_CODEBASE: false
           VALIDATE_BASH: true
           VALIDATE_GITHUB_ACTIONS: true
index 9faf19814a7268d87d75f11f05d121759fdf4fa1..d26766accc8445bfcd1a7b15a2a0438aa9d587ba 100644 (file)
@@ -34,7 +34,7 @@ BOOT_MNT="$(stat -c %m "$BOOT_ROOT")"
 if [ "$BOOT_MNT" = '/' ]; then
     ENTRY_DIR="$ENTRY_DIR_ABS"
 else
-    ENTRY_DIR="${ENTRY_DIR_ABS#$BOOT_MNT}"
+    ENTRY_DIR="${ENTRY_DIR_ABS#"$BOOT_MNT"}"
 fi
 
 case "$COMMAND" in
@@ -53,8 +53,10 @@ case "$COMMAND" in
 esac
 
 if [ -r /etc/os-release ]; then
+    # shellcheck source=/dev/null
     . /etc/os-release
 elif [ -r /usr/lib/os-release ]; then
+    # shellcheck source=/dev/null
     . /usr/lib/os-release
 fi