From 7e0b0d7212701627118ff2d51c9b784491e243df Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 10 Dec 2022 20:31:11 -0500 Subject: [PATCH] [O] Remove print_custom_ascii requirement from neofetch --- hyfetch/neofetch_util.py | 3 +-- neofetch | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/hyfetch/neofetch_util.py b/hyfetch/neofetch_util.py index d324c6d4..affc5849 100644 --- a/hyfetch/neofetch_util.py +++ b/hyfetch/neofetch_util.py @@ -235,8 +235,7 @@ def get_distro_ascii(distro: str | None = None) -> str: print(GLOBAL_CFG) cmd = 'print_ascii' if distro: - os.environ['CUSTOM_DISTRO'] = distro - cmd = 'print_custom_ascii' + cmd += f' --ascii_distro {distro}' asc = run_command(cmd, True) diff --git a/neofetch b/neofetch index ec9f36fa..c12b8fb5 100755 --- a/neofetch +++ b/neofetch @@ -13885,11 +13885,4 @@ get_print_ascii() { echo "$ascii_data" } -get_print_custom_ascii() { - distro="$CUSTOM_DISTRO" - ascii_distro=$distro - get_distro_ascii - echo "$ascii_data" -} - main "$@"