mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* script error
@ 2010-06-03 20:40 Erwin Rol
  2010-06-03 20:52 ` Eric Bénard
  2010-06-08  6:49 ` Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Erwin Rol @ 2010-06-03 20:40 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-09  9:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-03 20:40 script error Erwin Rol
2010-06-03 20:52 ` Eric Bénard
2010-06-08  6:49 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox