aboutsummaryrefslogtreecommitdiff
path: root/sboconfig
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-05-30 14:04:56 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-05-30 14:04:56 -0500
commit4e2ac2fecc1e30c2f9336de132596d2b28b0c8c9 (patch)
tree79fbe86f3f2dbb7d02b047c526cebccab6efa70f /sboconfig
parent31ae07b262666c3ab36eeb581a599e7c549ea9a0 (diff)
downloadsbotools2-4e2ac2fecc1e30c2f9336de132596d2b28b0c8c9.tar.xz
use die instead of print "blah blah\n" and exit 1, which was really dumb
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