summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerin Millar <kfm@plushkava.net>2024-06-27 16:25:31 +0100
committerKerin Millar <kfm@plushkava.net>2024-06-28 18:39:01 +0100
commit7f4c121af64e938daba2a30579078bedb760baac (patch)
tree1b8f7db689a957281df8c3e02cab265f5b2880dc
parentDon't explicitly assign the empty string in is_subset() (diff)
downloadgentoo-functions-7f4c121af64e938daba2a30579078bedb760baac.tar.gz
gentoo-functions-7f4c121af64e938daba2a30579078bedb760baac.tar.bz2
gentoo-functions-7f4c121af64e938daba2a30579078bedb760baac.zip
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@plushkava.net>
-rw-r--r--functions.sh2
1 files changed, 1 insertions, 1 deletions
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