[O] Remove print_custom_ascii requirement from neofetch

This commit is contained in:
Hykilpikonna 2022-12-10 20:31:11 -05:00
parent 1b0cf4ae1e
commit 7e0b0d7212
No known key found for this signature in database
GPG key ID: 256CD01A41D7FA26
2 changed files with 1 additions and 9 deletions

View file

@ -235,8 +235,7 @@ def get_distro_ascii(distro: str | None = None) -> str:
print(GLOBAL_CFG) print(GLOBAL_CFG)
cmd = 'print_ascii' cmd = 'print_ascii'
if distro: if distro:
os.environ['CUSTOM_DISTRO'] = distro cmd += f' --ascii_distro {distro}'
cmd = 'print_custom_ascii'
asc = run_command(cmd, True) asc = run_command(cmd, True)

View file

@ -13885,11 +13885,4 @@ get_print_ascii() {
echo "$ascii_data" echo "$ascii_data"
} }
get_print_custom_ascii() {
distro="$CUSTOM_DISTRO"
ascii_distro=$distro
get_distro_ascii
echo "$ascii_data"
}
main "$@" main "$@"