From 79fccfa9300ae7629adbd21b967c8a72d736cb5f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 12 Jun 2016 17:23:11 +1000 Subject: [PATCH] Remove bc usage from OpenBSD battery --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 97a5e8e6..fd26b6d4 100755 --- a/neofetch +++ b/neofetch @@ -1932,7 +1932,7 @@ getbattery () { battery0now="${battery0now/ Wh*}" [ "$battery0full" ] && \ - battery="$(printf "%s\n" "100 * $battery0now / $battery0full" | bc)%" + battery="$((100 * ${battery0now/\.} / ${battery0full/\.}))%" ;; "Mac OS X")