From 1b501bd32ac4f1bfb894a170a47ab47070a3d302 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 28 Feb 2023 07:50:15 +0100 Subject: [PATCH] Update jlmkr.py --- jlmkr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index f1ad4cc..4bbd66b 100644 --- a/jlmkr.py +++ b/jlmkr.py @@ -166,7 +166,10 @@ def start_jail(jail_name): Unable to mount the nvidia driver files.""")) for file_path in nvidia_driver_files: - if file_path.startswith('/dev/'): + if not file_path: + # Skip empty strings + continue + elif file_path.startswith('/dev/'): systemd_nspawn_additional_args.append( f"--bind={file_path}") else: