mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
General: Simplify test
This commit is contained in:
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}}")"
|
||||||
|
Reference in New Issue
Block a user