From: "Bo Ørsted Andresen" <bo.andresen@zlin.dk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] {OT} dvdrip permissions error, alternative?
Date: Fri, 13 Oct 2006 10:23:20 +0200 [thread overview]
Message-ID: <200610131023.23169.bo.andresen@zlin.dk> (raw)
In-Reply-To: <49bf44f10610122255y117f9b60ud15381c0a3e64c72@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 583 bytes --]
On Friday 13 October 2006 07:55, Grant wrote:
> #!/bin/bash
[SNIP]
> vobcopy -m || exit
> mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || exit
[SNIP]
>
> Can you tell me what purpose the "|| exit" portions serve?
It's quite common is bash scripts to define a function named die:
die() {
echo "$@"
exit 1
}
If you define that at the top of your script you ceplace the above with this:
> vobcopy -m || die "vobcopy failed"
> mkisofs -dvd-video -V $TITLE -o $FILENAME $TITLE || die "mkisofs failed"
I hope you get the point...
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-10-13 8:27 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-05 16:57 [gentoo-user] {OT} dvdrip permissions error, alternative? Grant
2006-10-05 17:09 ` Hemmann, Volker Armin
2006-10-05 17:12 ` Meino Christian Cramer
2006-10-05 18:39 ` Mike Williams
2006-10-06 16:59 ` Grant
2006-10-06 17:27 ` Neil Bothwick
2006-10-06 17:50 ` Grant
2006-10-06 18:03 ` Neil Bothwick
2006-10-06 18:34 ` Grant
2006-10-07 8:52 ` Nick Rout
2006-10-07 19:16 ` Boyd Stephen Smith Jr.
2006-10-07 20:43 ` Grant
2006-10-08 5:45 ` Nick Rout
2006-10-06 22:36 ` Boyd Stephen Smith Jr.
2006-10-07 16:56 ` Neil Bothwick
2006-10-07 17:22 ` [gentoo-user] [Even more OT]: " Remy Blank
2006-10-07 17:47 ` darren kirby
2006-10-07 18:43 ` [gentoo-user] " Remy Blank
2006-10-07 18:03 ` [gentoo-user] " Uwe Thiem
2006-10-08 7:56 ` Nick Rout
2006-10-08 17:59 ` Grant
2006-10-09 1:40 ` Nick Rout
2006-10-09 2:01 ` Grant
2006-10-09 9:02 ` Neil Bothwick
2006-10-09 14:55 ` Grant
2006-10-09 15:16 ` Neil Bothwick
2006-10-09 16:42 ` Grant
2006-10-09 18:07 ` Neil Bothwick
2006-10-10 0:08 ` Grant
2006-10-10 7:43 ` Neil Bothwick
2006-10-10 8:28 ` Neil Bothwick
2006-10-10 15:59 ` Grant
2006-10-10 20:53 ` Neil Bothwick
2006-10-11 15:24 ` Grant
2006-10-11 18:12 ` Neil Bothwick
2006-10-12 10:08 ` Paul Stear
2006-10-12 14:26 ` Grant
2006-10-12 17:38 ` Neil Bothwick
2006-10-13 5:55 ` Grant
2006-10-13 8:14 ` Neil Bothwick
2006-10-13 14:52 ` Grant
2006-10-13 15:03 ` Neil Bothwick
2006-10-13 16:07 ` Grant
2006-10-14 3:39 ` Grant
2006-10-13 8:23 ` Bo Ørsted Andresen [this message]
2006-10-13 9:51 ` go moko
2006-10-09 10:50 ` Neil Bothwick
2006-10-06 22:31 ` Boyd Stephen Smith Jr.
2006-10-07 1:54 ` Grant
2006-10-07 4:21 ` Boyd Stephen Smith Jr.
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=200610131023.23169.bo.andresen@zlin.dk \
--to=bo.andresen@zlin.dk \
--cc=gentoo-user@lists.gentoo.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