Fix style (I)
authorAlexander Popov <alex.popov@linux.com>
Tue, 16 Jan 2024 17:20:41 +0000 (20:20 +0300)
committerAlexander Popov <alex.popov@linux.com>
Tue, 16 Jan 2024 17:20:41 +0000 (20:20 +0300)
kernel_hardening_checker/__init__.py

index a092e5c8cdbd432221291f879d62ffee3bd5a184..597a964eea63a3a2a01df794e6e65b25504a0905 100644 (file)
@@ -281,7 +281,7 @@ def main():
         else:
             kernel_version, msg = detect_kernel_version(args.config)
         if kernel_version is None:
-            if not args.kernel_version:
+            if args.kernel_version is None:
                 print('[!] Hint: provide the kernel version file through --kernel-version option')
             sys.exit(f'[!] ERROR: {msg}')
         if mode != 'json':