aboutsummaryrefslogtreecommitdiff
path: root/sboremove
diff options
context:
space:
mode:
Diffstat (limited to 'sboremove')
-rwxr-xr-xsboremove6
1 files changed, 1 insertions, 5 deletions
diff --git a/sboremove b/sboremove
index 3b92099..7e4ddfc 100755
--- a/sboremove
+++ b/sboremove
@@ -156,11 +156,7 @@ FIRST: for my $remove (@$remove_queue) {
if ( "%README%" ~~ @reqz ) {
say "It is recommended that you view the README before continuing.";
print "Display README now? [y]: ";
- my $location = get_sbo_location($remove);
- my $fh = open_read($location .'/README');
- my $readme = do {local $/; <$fh>};
- close $fh;
-
+ my $readme = get_readme_contents get_sbo_location($remove);
print "\n" . $readme if <STDIN> =~ /^[Yy\n]/;
}