install_with_python: Secure Python download with sha256 checks.

Martin Schwenke martin at meltin.net
Tue Jun 23 18:52:19 MDT 2015


On Wed, 24 Jun 2015 10:49:00 +1000, Martin Schwenke <martin at meltin.net>
wrote:

> [...]  Here's an example:
> 
> ##############################
> #!/bin/sh
> [...]

Wow, that example was woefully incompletely, so didn't really
illustrate the whole point.  Sorry.  :-(

Take #2:

##############################
#!/bin/sh

set -e

mycleanup ()
{
    echo "Doing cleanup"
}

trap mycleanup 0

false

echo "We don't get here"
##############################

:-)

peace & happiness,
martin


More information about the samba-technical mailing list