diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-08-29 00:14:53 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-08-29 00:17:57 +0200 |
commit | d9948975a7bc93871b252aa9c5ac9f513e6f13d4 (patch) | |
tree | b68fced461fc0a198888bc4ba21d4b619c02d900 /sboremove | |
parent | 6e8187c0a64c138149868c867ea6e4ddafed5c87 (diff) | |
download | sbotools-d9948975a7bc93871b252aa9c5ac9f513e6f13d4.tar.xz |
SBO::Lib::Readme: let get_readme_contents use slurp() too
Diffstat (limited to 'sboremove')
-rwxr-xr-x | sboremove | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |