From ad0c542cfdf82efa4e2046c81653cfacb14bc6b5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 19 Aug 2014 11:33:15 +0100 Subject: [PATCH] mg-hosts mkpxedir: honour $OSSTEST_SUDO Signed-off-by: Ian Jackson --- mg-hosts | 1 + 1 file changed, 1 insertion(+) diff --git a/mg-hosts b/mg-hosts index 2643548..c49be79 100755 --- a/mg-hosts +++ b/mg-hosts @@ -104,6 +104,7 @@ sub l ($) { return split /,/, $_[0]; } sub cmd_mkpxedir () { die unless @ARGV>=1; + my $sudo = $ENV{'OSSTEST_SUDO'} // 'sudo'; foreach my $hn (@ARGV) { my $ho= selecthost("host=$hn"); my $macdir= $ho->{Ether}; -- 2.39.5