General: Simplify test
This commit is contained in:
parent
6557e4f1c3
commit
6c5b557623
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -2432,7 +2432,7 @@ info() {
|
||||||
"get_${2:-$1}" 2>/dev/null
|
"get_${2:-$1}" 2>/dev/null
|
||||||
|
|
||||||
# If the get_func function called 'prin' directly, stop here.
|
# If the get_func function called 'prin' directly, stop here.
|
||||||
(( "$prin" == 1 )) && return
|
[[ "$prin" ]] && return
|
||||||
|
|
||||||
# Update the variable
|
# Update the variable
|
||||||
output="$(trim "${!2:-${!1}}")"
|
output="$(trim "${!2:-${!1}}")"
|
||||||
|
|
Loading…
Reference in a new issue