Swap usage of share name and id for consistent behavior
This commit is contained in:
parent
0dbd8538a0
commit
24d962eb72
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue