test.sh

joerg, 07/20/2006 01:36 PM

Download (107 Bytes)

 
1
set -e
2
set -x
3

    
4
testf () {
5
	test -f /nonexistent || return 1
6
	return 0
7
}
8

    
9
if testf; then
10
	exit 1
11
fi
12
exit 0
13