diff options
Diffstat (limited to 'etc/rc.d/init.d')
-rwxr-xr-x | etc/rc.d/init.d/functions | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/etc/rc.d/init.d/functions b/etc/rc.d/init.d/functions index cc2f2c26..e7dacc53 100755 --- a/etc/rc.d/init.d/functions +++ b/etc/rc.d/init.d/functions @@ -134,19 +134,19 @@ gprintf_msg_rest() { return fi case "$1" in - *%s*%s*%s*%s*) - GPRINTF_MSG=$(gprintf "$1" "$2" "$3" "$4" "$5") - shift 5;; - *%s*%s*%s*) - GPRINTF_MSG=$(gprintf "$1" "$2" "$3" "$4") - shift 4;; - *%s*%s*) - GPRINTF_MSG=$(gprintf "$1" "$2" "$3") - shift 3;; - *%s*) - GPRINTF_MSG=$(gprintf "$1" "$2") - shift 2;; - *) + *%s*%s*%s*%s*) + GPRINTF_MSG=$(gprintf "$1" "$2" "$3" "$4" "$5") + shift 5;; + *%s*%s*%s*) + GPRINTF_MSG=$(gprintf "$1" "$2" "$3" "$4") + shift 4;; + *%s*%s*) + GPRINTF_MSG=$(gprintf "$1" "$2" "$3") + shift 3;; + *%s*) + GPRINTF_MSG=$(gprintf "$1" "$2") + shift 2;; + *) GPRINTF_MSG=$(gprintf "$1") # function may be called without any arguments, e.g. for 'success' [ $# -ne 0 ] && shift |