aboutsummaryrefslogtreecommitdiff
path: root/sboremove
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-29 00:14:53 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-29 00:17:57 +0200
commitd9948975a7bc93871b252aa9c5ac9f513e6f13d4 (patch)
treeb68fced461fc0a198888bc4ba21d4b619c02d900 /sboremove
parent6e8187c0a64c138149868c867ea6e4ddafed5c87 (diff)
downloadsbotools-d9948975a7bc93871b252aa9c5ac9f513e6f13d4.tar.xz
SBO::Lib::Readme: let get_readme_contents use slurp() too
Diffstat (limited to 'sboremove')
-rwxr-xr-xsboremove4
1 files changed, 2 insertions, 2 deletions
diff --git a/sboremove b/sboremove
index e262c68..bc42dfe 100755
--- a/sboremove
+++ b/sboremove
@@ -147,8 +147,8 @@ FIRST: for my $remove (@$remove_queue) {
say "It is recommended that you view the README before continuing.";
print "Display README now? [y]: ";
if (<STDIN> =~ /^[Yy\n]/) {
- my ($readme, $exit) = get_readme_contents(get_sbo_location($remove));
- if ($exit) {
+ my $readme = get_readme_contents(get_sbo_location($remove));
+ if (not defined $readme) {
warn "Unable to open README for $remove.\n";
} else {
print "\n" . $readme;