1
0
mirror of synced 2026-04-27 20:58:08 +00:00

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:
steve
2006-12-09 17:37:27 +00:00
parent 384e7a98fc
commit 72d8eee4c9

View File

@@ -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;