From 2943116dd552783f51303d5d08ab92b95f9ef806 Mon Sep 17 00:00:00 2001 From: Crestwave Date: Thu, 16 Apr 2020 14:47:13 +0800 Subject: [PATCH] neofetch: clean up --- neofetch | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index 9d92964e..5b3362d1 100755 --- a/neofetch +++ b/neofetch @@ -30,13 +30,8 @@ version=7.0.0 -if [[ "${BASH_VERSINFO[0]}" ]]; then - bash_version=${BASH_VERSINFO[0]} -else - bash_version=5 - shopt -s eval_unsafe_arith -fi - +bash_version=${BASH_VERSINFO[0]:-5} +shopt -s eval_unsafe_arith &>/dev/null sys_locale=${LANG:-C} XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config} PATH=$PATH:/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:/usr/libexec