diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:16 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | c68c0a270832ca340429878ce6a0ab606d435b06 (patch) | |
tree | 8f9a4286b138ca2768a724594ad4219bf30f6167 /functions/stagefile.sh | |
parent | f314791fa2fa3e6a557ca50ecb4a0cf7798fee79 (diff) | |
download | vyos-live-build-c68c0a270832ca340429878ce6a0ab606d435b06.tar.gz vyos-live-build-c68c0a270832ca340429878ce6a0ab606d435b06.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 |