Commit f17dc0bd authored by Dylan's avatar Dylan

Remove all echo usage

parent 90cf07f1
...@@ -1586,7 +1586,7 @@ getbattery () { ...@@ -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 ...@@ -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
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment