From ca13eb22e76c2dc4f2fabb3ceee5f27c428e6962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A9TriMoon=E2=84=A2?= Date: Mon, 31 Oct 2022 14:00:55 +0300 Subject: [PATCH] Update neofetch Fixing shellcheck warnings mentioned in https://github.com/dylanaraps/neofetch/pull/2225#issuecomment-1296876166 --- neofetch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/neofetch b/neofetch index 8b8ff788..ef76628c 100755 --- a/neofetch +++ b/neofetch @@ -2812,22 +2812,22 @@ get_memory() { mem_label=TiB memory_unit_divider=$((1024 * 1024)) printf -v mem_used "%'.*f" \ - ${mem_precision} \ - $(($mem_used / $memory_unit_divider)).$(($mem_used % $memory_unit_divider)) + "${mem_precision}" \ + $((mem_used / memory_unit_divider)).$((mem_used % memory_unit_divider)) printf -v mem_total "%'.*f" \ - ${mem_precision} \ - $(($mem_total / $memory_unit_divider)).$(($mem_total % $memory_unit_divider)) + "${mem_precision}" \ + $((mem_total / memory_unit_divider)).$((mem_total % memory_unit_divider)) ;; gib) mem_label=GiB memory_unit_divider=1024 printf -v mem_used "%'.*f" \ - ${mem_precision} \ - $(($mem_used / $memory_unit_divider)).$(($mem_used % $memory_unit_divider)) + "${mem_precision}" \ + $((mem_used / memory_unit_divider)).$((mem_used % memory_unit_divider)) printf -v mem_total "%'.*f" \ - ${mem_precision} \ - $(($mem_total / $memory_unit_divider)).$(($mem_total % $memory_unit_divider)) + "${mem_precision}" \ + $((mem_total / memory_unit_divider)).$((mem_total % memory_unit_divider)) ;; kib)