diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:16 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:16 +0200 |
commit | c026e68cd0694cc7564405f570f75855799b952a (patch) | |
tree | 8f9a4286b138ca2768a724594ad4219bf30f6167 /functions/stagefile.sh | |
parent | 1803c471647582743a7c7a99c34d5bc9c7bb9595 (diff) | |
download | vyos-live-build-c026e68cd0694cc7564405f570f75855799b952a.tar.gz vyos-live-build-c026e68cd0694cc7564405f570f75855799b952a.zip |
Adding live-helper 1.0~a21-1.
Diffstat (limited to 'functions/stagefile.sh')
-rwxr-xr-x | functions/stagefile.sh | 7 |
1 files changed, 4 insertions, 3 deletions
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 |