Swap usage of share name and id for consistent behavior

This commit is contained in:
Chris Roberts 2018-01-02 14:03:34 -08:00
parent 0dbd8538a0
commit 24d962eb72
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ for ($i=0; $i -le $args.length; $i = $i + 3) {
exit 1
}
$result = net share $share_name=$path /unlimited /GRANT:$grant /REMARK:"${share_id}"
$result = net share $share_id=$path /unlimited /GRANT:$grant /REMARK:"${share_name}"
if ($LastExitCode -ne 0) {
$host.ui.WriteLine("share path: ${path}")
$host.ui.WriteErrorLine("error ${result}")