summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/run_program.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index 7c0ba92c7..c4d195c45 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -32,6 +32,14 @@ sub get_stdout {
run($name, '>', \@r, @args) or return;
wantarray() ? @r : join('', @r);
}
+
+sub get_stdout_raw {
+ my ($options, $name, @args) = @_;
+ my @r;
+ raw($options, $name, '>', \@r, @args) or return;
+ wantarray() ? @r : join('', @r);
+}
+
sub rooted_get_stdout {
my ($root, $name, @args) = @_;
my @r;