mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
Fix battery showing no info in stdout mode
This commit is contained in:
8
fetch
8
fetch
@@ -1857,7 +1857,11 @@ prin () {
|
||||
;;
|
||||
esac
|
||||
|
||||
printf "%b%s\n" "${padding}${string}${clear}"
|
||||
# Print the info
|
||||
printf "%b%s" "${padding}${string}${clear}"
|
||||
|
||||
# If stdout mode is off, print a newline too.
|
||||
[ "$stdout" == "off" ] && printf "\n"
|
||||
}
|
||||
|
||||
# }}}
|
||||
@@ -2196,7 +2200,7 @@ while [ "$1" ]; do
|
||||
eval output="\$${func}"
|
||||
|
||||
# Print the output
|
||||
printf "%s" "$output"
|
||||
printf "%s" "${output}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user