mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Remove all echo usage
This commit is contained in:
4
neofetch
4
neofetch
@@ -1586,7 +1586,7 @@ getbattery () {
|
|||||||
battery0now=$(sysctl -n hw.sensors.acpibat0.watthour3)
|
battery0now=$(sysctl -n hw.sensors.acpibat0.watthour3)
|
||||||
battery0now="${battery0now/ Wh*}"
|
battery0now="${battery0now/ Wh*}"
|
||||||
|
|
||||||
battery="$(echo "100 * $battery0now / $battery0full" | bc)%"
|
battery="$(printf "%s\n" "100 * $battery0now / $battery0full" | bc)%"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
@@ -2707,7 +2707,7 @@ while [ "$1" ]; do
|
|||||||
unset info_color colors
|
unset info_color colors
|
||||||
unset -f bar
|
unset -f bar
|
||||||
case "$2" in
|
case "$2" in
|
||||||
"--"* | "") echo "--stdout requires at least one argument"; exit ;;
|
"--"* | "") printf "%s\n" "--stdout requires at least one argument"; exit ;;
|
||||||
*) shift; args=("$@"); config="off"; stdout ;;
|
*) shift; args=("$@"); config="off"; stdout ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user