2011/1/22 Thorsten Wilms <t...@freenet.de>

> On Sat, 2011-01-22 at 12:53 +0300, Сергей wrote:
> > I think it happens because extract-background-context script doesn't
> > return an exit code indicating success. You should make sys.exit(0)
> > the last operation of your script to inform other scripts that the
> > context was extracted successfully.
>
> That made no difference, though I guess I should use sys.exit, anyway.
>
Weird. I shall investigate this.


> ----
> which 'extract-background-context' && extract-background-context
> on_white.png on_black.png; rm on_white.png on_black.png || echo "Sorry,
> you don't have backtestground installed" > /dev/stderr && exit 1
> ----
> , note the "; rm on_white.png on_black.png"
>
> makes it work.
>
Yes, but it doesn't check for bactestground availability anymore. It checks
if rm was successful and if it wasn't, prints that backtestground is not
installed.

Try this version, it's more structured.

Attachment: auto-extract-context
Description: Binary data

-- 
ubuntu-art mailing list
ubuntu-art@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-art

Reply via email to