Remove all echo usage

This commit is contained in:
Dylan 2016-03-14 22:31:40 +11:00
parent 90cf07f171
commit f17dc0bd5d
1 changed files with 2 additions and 2 deletions

View File

@ -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
;; ;;