From 88d2b3676fd6e6556e7d9ab67d2c36ebab7fbd85 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 21 Dec 2017 10:19:28 -0800 Subject: [PATCH] Remove stale comments from helper scripts --- plugins/hosts/windows/scripts/set_share.ps1 | 2 -- plugins/hosts/windows/scripts/unset_share.ps1 | 1 - 2 files changed, 3 deletions(-) diff --git a/plugins/hosts/windows/scripts/set_share.ps1 b/plugins/hosts/windows/scripts/set_share.ps1 index a102e08c2..8c4e077b5 100644 --- a/plugins/hosts/windows/scripts/set_share.ps1 +++ b/plugins/hosts/windows/scripts/set_share.ps1 @@ -4,8 +4,6 @@ $objUser = $objSID.Translate([System.Security.Principal.NTAccount]) $grant = "$objUser,Full" -# First we split the defs string by commas to get -# each group of parameters for ($i=0; $i -le $args.length; $i = $i + 3) { $path = $args[$i] $share_name = $args[$i+1] diff --git a/plugins/hosts/windows/scripts/unset_share.ps1 b/plugins/hosts/windows/scripts/unset_share.ps1 index ebbfda59b..4fec74d30 100644 --- a/plugins/hosts/windows/scripts/unset_share.ps1 +++ b/plugins/hosts/windows/scripts/unset_share.ps1 @@ -1,4 +1,3 @@ -# Share names are comma delimited ForEach ($share_name in $args) { $result = net share $share_name /DELETE if ($LastExitCode -ne 0) {