[arch-projects] [devtools] [PATCH 7/9] lib/common.sh:stat_busy(): Accept printf-style arguments.

Luke Shumaker LukeShu at sbcglobal.net
Sat May 10 22:22:09 EDT 2014


This seems to be logical to fit in with the other message handling
functions, and it only takes a couple more characters.
---
 lib/common.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/common.sh b/lib/common.sh
index 38e31a2..d6da1ab 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -52,7 +52,7 @@ error() {
 
 stat_busy() {
 	local mesg=$1; shift
-	printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}...${ALL_OFF}" >&2
+	printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}...${ALL_OFF}" "$@" >&2
 }
 
 stat_done() {
-- 
1.9.2



More information about the arch-projects mailing list