mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-19 02:17:12 +00:00
general: clean up
This commit is contained in:
5
neofetch
5
neofetch
@@ -3910,10 +3910,7 @@ info() {
|
|||||||
prin() {
|
prin() {
|
||||||
# If $2 doesn't exist we format $1 as info.
|
# If $2 doesn't exist we format $1 as info.
|
||||||
if [[ "$(trim "$1")" && "$2" ]]; then
|
if [[ "$(trim "$1")" && "$2" ]]; then
|
||||||
if [[ "$json" ]]; then
|
[[ "$json" ]] && { printf " %s\n" "\"${1}\": \"${2}\","; return; }
|
||||||
printf " %b\n" "\"${1}\": \"${2}\","
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
string="${1}${2:+: $2}"
|
string="${1}${2:+: $2}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user