From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] common, ubi: use positive return values for ubi check
Date: Fri, 10 Apr 2015 14:49:04 -0400 [thread overview]
Message-ID: <20150410184904.GC9524@bill-the-cat> (raw)
In-Reply-To: <1428657943-5522-1-git-send-email-stefan@agner.ch>
On Fri, Apr 10, 2015 at 11:25:43AM +0200, Stefan Agner wrote:
> The ubi check command is expected to not fail and just check whether
> a volume exist or not. Currently, when a volume does not exist, the
> command fails which leads to an error:
> "exit not allowed from main input shell."
>
> Use 1 to indicate that a volume does not exist. This allows to use
> ubi check in an if statement, e.g.
> if ubi check rootfs; then; echo "exists"; else; echo "not there"; fi
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150410/c7cbf3a8/attachment.sig>
prev parent reply other threads:[~2015-04-10 18:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-10 9:25 [U-Boot] [PATCH] common, ubi: use positive return values for ubi check Stefan Agner
2015-04-10 18:49 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150410184904.GC9524@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox