aboutsummaryrefslogtreecommitdiff
path: root/sboremove
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2013-01-12 04:14:03 -0600
committerJ Pipkin <j@dawnrazor.net>2013-01-12 04:14:03 -0600
commitbe2bb2b27d61a39bff6efd890c3d519c39db321e (patch)
tree387f0c14a12526c6eb1668b3d588ded1a0472212 /sboremove
parentb2a26f795d32e398bfc3dbfc13882419bd3ba929 (diff)
downloadsbotools-be2bb2b27d61a39bff6efd890c3d519c39db321e.tar.xz
implement failure-dependent exit statuses, ask to proceed if a failure is encountered during the process
Diffstat (limited to 'sboremove')
-rwxr-xr-xsboremove4
1 files changed, 2 insertions, 2 deletions
diff --git a/sboremove b/sboremove
index 7479f29..95bd935 100755
--- a/sboremove
+++ b/sboremove
@@ -46,7 +46,7 @@ GetOptions(
show_usage and exit 0 if $help;
show_version and exit 0 if $vers;
-show_usage and exit 0 unless exists $ARGV[0];
+show_usage and exit 1 unless exists $ARGV[0];
# ensure that all provided arguments are valid sbos
my @sbos;
@@ -59,7 +59,7 @@ for my $sbo (@ARGV) {
say "Unable to locate $sbo in the SlackBuilds.org tree."
}
}
-exit 0 unless exists $sbos[0];
+exit 1 unless exists $sbos[0];
# # wrapper to pull the list of requirements for a given sbo
# sub get_requires ($) {