From 936155177da8f0a66b88d68d2a3a81a5bf1e90b0 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Wed, 24 Mar 2010 22:58:37 +0100 Subject: unbreak follow_progress syntax --- lib-ui.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib-ui.sh b/lib-ui.sh index 604d596..6e7f20f 100644 --- a/lib-ui.sh +++ b/lib-ui.sh @@ -243,10 +243,10 @@ ask_yesno () # $3 pid to monitor. if process stopped, stop following (only used in cli mode) follow_progress () { - [ -z "$1" ] && die_error "follow_progress needs a title!" [ -z "$2" - ] && die_error "follow_progress needs a logfile to follow!" - FOLLOW_PID= [ `type -t _${LIBUI_UI}_follow_progress` == function ] - || die_error "_${LIBUI_UI}_follow_progress is not a function" + [ -z "$1" ] && die_error "follow_progress needs a title!" + [ -z "$2" ] && die_error "follow_progress needs a logfile to follow!" + FOLLOW_PID= + [ `type -t _${LIBUI_UI}_follow_progress` == function ] || die_error "_${LIBUI_UI}_follow_progress is not a function" _${LIBUI_UI}_follow_progress "$@" } -- cgit v1.2.3