Skip to content

Commit

Permalink
Merge pull request #121 from liulinC/private/linl/dev
Browse files Browse the repository at this point in the history
Set MenuEntry extra if it has valid value
  • Loading branch information
liulinC authored Oct 10, 2023
2 parents f703ff7 + b323a17 commit 080bfd9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions xcp/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,11 +586,7 @@ def writeGrub2(self, dst_file = None):
if text:
print("\n".join(text), file=fh)

extra = ' '
try:
extra = m.extra
except AttributeError:
pass
extra = m.extra if m.extra else ' '
print("menuentry '%s'%s{" % (m.title, extra), file=fh)

try:
Expand Down

0 comments on commit 080bfd9

Please sign in to comment.