From 9398ae7fcbc2af9c788089ba72ddcd610b8df3a9 Mon Sep 17 00:00:00 2001 From: Dave Reisner <dreisner@archlinux.org> Date: Sun, 7 Dec 2014 10:19:54 -0500 Subject: lsinitcpio: avoid setting TIMEFORMAT globally Not that it really matters, but let's scope this to where we actually care for the modified time output. --- lsinitcpio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lsinitcpio') diff --git a/lsinitcpio b/lsinitcpio index 9567b79..f54fa25 100755 --- a/lsinitcpio +++ b/lsinitcpio @@ -139,7 +139,7 @@ analyze_image() { zsize=$(stat -c %s "$_image") # calculate compression ratio - TIMEFORMAT=%R decomptime=$({ time decomp "$_image" >/dev/null; } 2>&1) + decomptime=$(TIMEFORMAT=%R; { time decomp "$_image" >/dev/null; } 2>&1) if [[ $_compress ]]; then fullsize=$(decomp "$_image" | wc -c) ratio=.$(( zsize * 1000 / fullsize % 1000 )) -- cgit v1.2.3-24-g4f1b