From c68c0a270832ca340429878ce6a0ab606d435b06 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:05:16 +0200 Subject: Adding live-helper 1.0~a21-1. --- functions/stagefile.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'functions/stagefile.sh') diff --git a/functions/stagefile.sh b/functions/stagefile.sh index 2606983a1..647b1817d 100755 --- a/functions/stagefile.sh +++ b/functions/stagefile.sh @@ -44,6 +44,7 @@ Create_stagefile () Require_stagefile () { + NAME="`basename ${0}`" FILES="${@}" NUMBER="`echo ${@} | wc -w`" @@ -59,11 +60,11 @@ Require_stagefile () if [ "${CONTINUE}" != "true" ] then - if [ "${NUMBER}" -gt 1 ] + if [ "${NUMBER}" -eq 1 ] then - Echo_error "one of ${NAME} is missing" - else Echo_error "${NAME} missing" + else + Echo_error "one of ${NAME} is missing" fi exit 1 -- cgit v1.2.3