mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +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
|
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}"
|
eval output="\$${func}"
|
||||||
|
|
||||||
# Print the output
|
# Print the output
|
||||||
printf "%s" "$output"
|
printf "%s" "${output}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user