commit: 7f4c121af64e938daba2a30579078bedb760baac
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Thu Jun 27 15:25:31 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 28 17:39:01 2024 +0000
URL:
https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=7f4c121a
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 <kfm <AT> plushkava.net>
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