From f097b79e7940686d5fc85b9b3519986439ed12c4 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Mon, 6 Feb 2017 12:26:48 +0100 Subject: SBO::Lib::Readme: Add a fix for useradd/groupadd commands which span lines. This closes #57. --- SBO-Lib/lib/SBO/Lib/Readme.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SBO-Lib/lib/SBO/Lib/Readme.pm') diff --git a/SBO-Lib/lib/SBO/Lib/Readme.pm b/SBO-Lib/lib/SBO/Lib/Readme.pm index cb27ec0..0656891 100644 --- a/SBO-Lib/lib/SBO/Lib/Readme.pm +++ b/SBO-Lib/lib/SBO/Lib/Readme.pm @@ -170,7 +170,7 @@ C commands, and returns them in an array reference. sub get_user_group { script_error('get_user_group requires an argument') unless @_ == 1; my $readme = shift; - my @cmds = $readme =~ /^\s*#*\s*(useradd.*|groupadd.*)/mg; + my @cmds = $readme =~ /^\s*#*\s*(useradd.*?|groupadd.*?)(?