aboutsummaryrefslogtreecommitdiff
path: root/sboconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sboconfig')
-rwxr-xr-xsboconfig5
1 files changed, 2 insertions, 3 deletions
diff --git a/sboconfig b/sboconfig
index b3260d3..83fdcea 100755
--- a/sboconfig
+++ b/sboconfig
@@ -74,8 +74,7 @@ while (my ($key, $value) = each %valid_confs) {
}
if (exists $changes{JOBS}) {
unless ($changes{JOBS} =~ /^\d+$/ || $changes{JOBS} eq 'FALSE') {
- print "You have provided an invalid parameter for -j\n";
- exit 1;
+ die "You have provided an invalid parameter for -j\n";
}
}
@@ -89,7 +88,7 @@ sub config_write {
my ($key, $val) = @_;
if (! -d $conf_dir) {
mkdir ($conf_dir)
- or print "Unable to create $conf_dir. Exiting.\n" and exit (1);
+ or die "Unable to create $conf_dir. Exiting.\n";
}
if (-f $conf_file) {
# get a temp file and fill it with the contents of our config file