From c441802058c675845bf169c483c2ed52baec8d22 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 8 Jan 2024 10:51:59 -0500 Subject: [PATCH] Fix root-level entries being displayed incorrectly in the entry list --- lib/sshyp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sshyp.py b/lib/sshyp.py index 6f0e7a5..b46096e 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -24,6 +24,8 @@ def entry_list_gen(_directory=f"{home}/.local/share/sshyp/"): _color_alternator = 1 if _ran: print(f"\n\n\u001b[38;5;7;48;5;8m{_root.replace(f'{home}/.local/share/sshyp', '', 1)}/\u001b[0m") + elif _root == f"{home}/.local/share/sshyp/" and len(_files) > 0: + print(f"\n\n\u001b[38;5;7;48;5;8m/\u001b[0m") _char_counter = 0 for _filename in sorted(_files): if _color_alternator > 0: