From: yoe Date: Thu, 19 Jul 2007 08:50:47 +0000 (+0000) Subject: r265: Check whether the program runs with a config file rather than stuff on the... X-Git-Url: http://git.alex.org.uk r265: Check whether the program runs with a config file rather than stuff on the cmdline, too --- diff --git a/simple_test b/simple_test index 8b62f29..b19e968 100755 --- a/simple_test +++ b/simple_test @@ -20,5 +20,23 @@ else kill $PID fi rm -f nbd-server.pid +if [ $retval -ne 0 ] +then + rm -f $tmpnam + exit $retval +fi +cat > nbd-server.conf <