On Saturday 27 September 2008 17:51, nextgens at freenetproject.org wrote:
> Author: nextgens
> Date: 2008-09-27 16:51:55 +0000 (Sat, 27 Sep 2008)
> New Revision: 22863
>
> Modified:
> trunk/apps/new_installer/scripts/update.sh
> Log:
> update.sh: check if a pre-update.sh script exists and run it before we
actually attempt to update
>
> Modified: trunk/apps/new_installer/scripts/update.sh
> ===================================================================
> --- trunk/apps/new_installer/scripts/update.sh 2008-09-27 15:37:55 UTC
> (rev
22862)
> +++ trunk/apps/new_installer/scripts/update.sh 2008-09-27 16:51:55 UTC
> (rev
22863)
> @@ -5,6 +5,13 @@
> SHA1_Sha1Test="16bfa2d0e1f8bd7b2be79b2c26d88f47ea2164ca"
> echo "Updating freenet"
>
> +if test -x pre-update.sh
> +then
> + echo "Running the pre-update script:"
> + exec pre-update.sh
exec will never return, correct?
> + echo "Returning from the pre-update script"
> +fi
> +
> invert_return_code () {
> $*
> if test $? -ne 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20081003/6f61c60e/attachment.pgp>