From 7f4c121af64e938daba2a30579078bedb760baac Mon Sep 17 00:00:00 2001 From: Kerin Millar Date: Thu, 27 Jun 2024 16:25:31 +0100 Subject: Use printf -v only for bash in _update_time() After all, the -v option is an extension. This was a mistake made through copying and pasting during a bout of refactoring and rebasing. Signed-off-by: Kerin Millar --- functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index faf9d64..798c6c7 100644 --- a/functions.sh +++ b/functions.sh @@ -702,7 +702,7 @@ _update_time() IFS=' ' read -r timeval _ < /proc/uptime || return s=${timeval%.*} - printf -v ds '%.1f' ".${timeval#*.}" + ds=$(printf '%.1f' ".${timeval#*.}") if [ "${ds}" = "1.0" ]; then ds=10 else -- cgit v1.2.3-65-gdbad