aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2005-12-29 10:40:28 +0000
committerFlorent Villard <warly@mandriva.com>2005-12-29 10:40:28 +0000
commit09499a12408238635b2df0f1d3b94ed320e18506 (patch)
tree348d6f00c2c7fe01d8b90868fabbad928559029d /iurt2
parent1bdd840bdee55e38872b3b62ecb30252d8a45d25 (diff)
downloadiurt-09499a12408238635b2df0f1d3b94ed320e18506.tar
iurt-09499a12408238635b2df0f1d3b94ed320e18506.tar.gz
iurt-09499a12408238635b2df0f1d3b94ed320e18506.tar.bz2
iurt-09499a12408238635b2df0f1d3b94ed320e18506.tar.xz
iurt-09499a12408238635b2df0f1d3b94ed320e18506.zip
Die if the config file is not correct
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt22
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index 83bef78..8256a61 100755
--- a/iurt2
+++ b/iurt2
@@ -43,7 +43,7 @@ my $configfile = "$HOME/.iurt.$distro_tag.conf";
print "iurt: loading config file $configfile\n";
my $config;
if (-f $configfile) {
- $config = do $configfile
+ $config = do $configfile or die "FATAL iurt: syntax error in $configfile";
} else {
$config = {}
}