General: Simplify test

This commit is contained in:
Dylan Araps 2016-12-15 10:28:52 +11:00
parent 6557e4f1c3
commit 6c5b557623
1 changed files with 1 additions and 1 deletions

View File

@ -2432,7 +2432,7 @@ info() {
"get_${2:-$1}" 2>/dev/null
# If the get_func function called 'prin' directly, stop here.
(( "$prin" == 1 )) && return
[[ "$prin" ]] && return
# Update the variable
output="$(trim "${!2:-${!1}}")"