From: Ian Jackson Subject: [OSSTEST PATCH 08/32] pxe setup: mg-hosts mkpxedir has -n (dry run) option Date: Tue, 24 Mar 2015 19:02:31 +0000 Message-ID: <1427223775-8592-9-git-send-email-ian.jackson@eu.citrix.com> References: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaU76-0000vr-UB for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 19:03:45 +0000 In-Reply-To: <1427223775-8592-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Jackson --- mg-hosts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mg-hosts b/mg-hosts index f695f98..497139a 100755 --- a/mg-hosts +++ b/mg-hosts @@ -105,6 +105,8 @@ sub checkhost ($) { sub l ($) { return split /,/, $_[0]; } sub cmd_mkpxedir () { + my $dryrun = 0; + if (@ARGV && $ARGV[0] eq '-n') { shift @ARGV; $dryrun= 1; } die unless @ARGV>=1; my $sudo = $ENV{'OSSTEST_SUDO'} // 'sudo'; foreach my $hn (@ARGV) { -- 1.7.10.4