2006-12-09 17:37:27 by steve
Abort if the file specified with --config doesn't exist. See #402328
This commit is contained in:
@@ -507,7 +507,7 @@ Install an X11 server, using VNC and XDM
|
||||
--
|
||||
http://www.steve.org.uk/
|
||||
|
||||
$Id: xen-create-image,v 1.110 2006-12-05 15:04:31 steve Exp $
|
||||
$Id: xen-create-image,v 1.111 2006-12-09 17:37:27 steve Exp $
|
||||
|
||||
=cut
|
||||
|
||||
@@ -593,7 +593,16 @@ if ( $CONFIG{'config'} )
|
||||
}
|
||||
|
||||
# Read the file, if it exists.
|
||||
readConfigurationFile( $path ) if ( -e $path );
|
||||
if ( -e $path )
|
||||
{
|
||||
readConfigurationFile( $path );
|
||||
}
|
||||
else
|
||||
{
|
||||
logprint( "The specified configuration file does not exist: '$path'\n" );
|
||||
logprint( "Aborting\n\n" );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1069,7 +1078,7 @@ sub parseCommandLineArguments
|
||||
|
||||
if ( $VERSION )
|
||||
{
|
||||
my $REVISION = '$Revision: 1.110 $';
|
||||
my $REVISION = '$Revision: 1.111 $';
|
||||
if ( $REVISION =~ /1.([0-9.]+) / )
|
||||
{
|
||||
$REVISION = $1;
|
||||
|
||||
Reference in New Issue
Block a user