From: Erwin Rol <mailinglists@erwinrol.com>
To: barebox@lists.infradead.org
Subject: script error
Date: Thu, 03 Jun 2010 22:40:18 +0200 [thread overview]
Message-ID: <4C081332.6080904@erwinrol.com> (raw)
Hallo,
i have a problem with running scripts. It seems that as soon a command
in a script fails the whole script is terminated.
I am trying the following in /env/bin/init
echo "Loading env A"
mkdir /env_a/
loadenv /dev/biosdisk0.1 /env_a/
if [ -f /env_a/revision ]; then
. /env_a/revision
fi
The /dev/biosdisk0.1 is empty so the loadenv fails, and that also stops
the /env/bin/init script, everything after the "fi" is never executed.
any ideas ?
- Erwin
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2010-06-03 20:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 20:40 Erwin Rol [this message]
2010-06-03 20:52 ` Eric Bénard
2010-06-08 6:49 ` Sascha Hauer
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=4C081332.6080904@erwinrol.com \
--to=mailinglists@erwinrol.com \
--cc=barebox@lists.infradead.org \
/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