From f17dc0bd5d2fbf05538f79c4042ee66a811f6f41 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 14 Mar 2016 22:31:40 +1100 Subject: [PATCH] Remove all echo usage --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 3ad1c8c1..2100e0c1 100755 --- a/neofetch +++ b/neofetch @@ -1586,7 +1586,7 @@ getbattery () { battery0now=$(sysctl -n hw.sensors.acpibat0.watthour3) battery0now="${battery0now/ Wh*}" - battery="$(echo "100 * $battery0now / $battery0full" | bc)%" + battery="$(printf "%s\n" "100 * $battery0now / $battery0full" | bc)%" ;; "Mac OS X") @@ -2707,7 +2707,7 @@ while [ "$1" ]; do unset info_color colors unset -f bar 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 ;; esac ;;