Also close EOF's

This commit is contained in:
localhost_frssoft 2023-06-15 19:07:56 +03:00
parent d689a4c34e
commit 3c545cc991

View file

@ -128,7 +128,7 @@ Insert token from "Access token" here''')
current_instance.select_instance(current_instance.instance) current_instance.select_instance(current_instance.instance)
if selected == 'Donate': if selected == 'Donate':
os.system(f'less <<EOF\nSupport instance message:\n{support_message}') os.system(f'less <<EOF\nSupport instance message:\n{support_message}\nEOF')
if selected == 'About instance': if selected == 'About instance':
about_instance_info = [] about_instance_info = []
for i in ins_settings: for i in ins_settings:
@ -143,7 +143,7 @@ Insert token from "Access token" here''')
for k, v in ins_nodeinfo['usage'].items(): for k, v in ins_nodeinfo['usage'].items():
about_instance_info.append(f'{k}: {v}') about_instance_info.append(f'{k}: {v}')
about_instance_info = '\n'.join(about_instance_info) about_instance_info = '\n'.join(about_instance_info)
os.system(f'less <<EOF\n{about_instance_info}') os.system(f'less <<EOF\n{about_instance_info}\nEOF')
del about_instance_info del about_instance_info
if selected == 'Player': if selected == 'Player':
src.mpv_control.player_menu( src.mpv_control.player_menu(