diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-05-30 14:04:56 -0500 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-05-30 14:04:56 -0500 |
commit | 4e2ac2fecc1e30c2f9336de132596d2b28b0c8c9 (patch) | |
tree | 79fbe86f3f2dbb7d02b047c526cebccab6efa70f /sboconfig | |
parent | 31ae07b262666c3ab36eeb581a599e7c549ea9a0 (diff) | |
download | sbotools2-4e2ac2fecc1e30c2f9336de132596d2b28b0c8c9.tar.xz |
use die instead of print "blah blah\n" and exit 1, which was really dumb
Diffstat (limited to 'sboconfig')
-rwxr-xr-x | sboconfig | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |