diff options
author | xocel <xocel@iquidus.org> | 2013-01-01 18:09:56 +1300 |
---|---|---|
committer | xocel <xocel@iquidus.org> | 2013-01-03 12:11:46 +1300 |
commit | 822555d7e43653eb5a9b2c122a30e33af41c844b (patch) | |
tree | 1304a63461eb72cf17c75e7d970b5cefa8dc28fc /sboupgrade | |
parent | ca238587fe160ca079c40289d5b514b55d28cf9a (diff) | |
download | sbotools2-822555d7e43653eb5a9b2c122a30e33af41c844b.tar.xz |
fixes #26
Diffstat (limited to 'sboupgrade')
-rwxr-xr-x | sboupgrade | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -176,10 +176,8 @@ sub ask_opts { sub user_prompt { exists $_[1] or script_error 'user_prompt requires two arguments.'; my ($sbo, $location) = @_; - my $fh = open_read($location .'/README'); - my $readme = do {local $/; <$fh>}; - close $fh; - + my $readme = get_readme_contents $location; + # check for user/group add commands, offer to run any found my $user_group = get_user_group $readme; my $cmds; |