view libtomcrypt/mess.sh @ 617:81def6b732c7

Clean up fd on failure. Found by Klocwork
author Matt Johnston <matt@ucc.asn.au>
date Thu, 07 Apr 2011 13:25:00 +0000
parents 0cbe8f6dbf9e
children
line wrap: on
line source

#!/bin/bash
if cvs log $1 >/dev/null 2>/dev/null; then exit 0; else echo "$1 shouldn't be here, removed"; rm -f $1 ; fi