Update jlmkr.py

This commit is contained in:
Jip-Hop 2023-02-28 07:50:15 +01:00
parent 4b1d881a95
commit 1b501bd32a
1 changed files with 4 additions and 1 deletions

View File

@ -166,7 +166,10 @@ def start_jail(jail_name):
Unable to mount the nvidia driver files.""")) Unable to mount the nvidia driver files."""))
for file_path in 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( systemd_nspawn_additional_args.append(
f"--bind={file_path}") f"--bind={file_path}")
else: else: