sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
Re: [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (0b5d93471824c623d463d478601e173c5ade544b)
- From: Jaka Kranjc <lynx AT mages.ath.cx>
- To: sm-commit AT lists.ibiblio.org
- Subject: Re: [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (0b5d93471824c623d463d478601e173c5ade544b)
- Date: Thu, 7 Feb 2008 22:09:17 +0100
On Thursday 07 of February 2008 19:45:35 Justin Boffemmyer wrote:
> + echo "mount --bind /dev /mnt/root/dev" && \
> + mount --bind /dev /mnt/root/dev && \
> + echo "mount --bind /dev /mnt/root/dev" && \
> + mount --bind /dev/pts /mnt/root/dev/pts && \
> + echo "mount --bind /dev /mnt/root/dev" && \
> + mount --bind /proc /mnt/root/proc
You could use a trick for this: set PS4="" and set -x at the start and set +x
at the end of the block. ;)
> +fi
> +
> +rc=$?
> +
> +if [[ $rc -gt 0 ]]
> +then
> + exit $rc
> +fi
fi || exit $?
That would be much simpler. :) It would also avoid the bug after the next two
stages, where you still check the old rc.
--
We cannot command nature except by obeying her. --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org
Attachment:
signature.asc
Description: This is a digitally signed message part.
-
[SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (0b5d93471824c623d463d478601e173c5ade544b),
Justin Boffemmyer, 02/07/2008
- Re: [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (0b5d93471824c623d463d478601e173c5ade544b), Jaka Kranjc, 02/07/2008
Archive powered by MHonArc 2.6.24.