From 996e7d7e1f614649661511fb259bf44bd8e980d4 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sun, 23 Nov 2008 21:11:43 +0000 Subject: [PATCH] Don't abort if the file exists --- bin/xen-create-image | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xen-create-image b/bin/xen-create-image index 60f53cb..69e477c 100755 --- a/bin/xen-create-image +++ b/bin/xen-create-image @@ -663,7 +663,7 @@ my $FAIL = 0; # # Release number. # -my $RELEASE = '3.9'; +my $RELEASE = '4.0'; @@ -1812,7 +1812,7 @@ EOF # my $cfg = $CONFIG{'output'} . "/" . $CONFIG{'hostname'} . $CONFIG{'extension'}; - if ( -e $cfg ) + if ( ( -e $cfg ) && ( !$CONFIG{'force'} ) ) { print "Configuration file already exists; $cfg\n"; print "Aborting\n";