Skip to content

Commit 1d35666

Browse files
committed
use pwsh -c, not powershell -Command
1 parent 38e3c18 commit 1d35666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

+stdlib/+sys/device.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
function i = device(p)
22

3-
i = [];
3+
i = 0;
44

55
if ispc()
6-
c0 = 'powershell -Command "(Get-CimInstance -ClassName Win32_Volume -Filter \"DriveLetter = ''';
6+
c0 = 'pwsh -c "(Get-CimInstance -ClassName Win32_Volume -Filter \"DriveLetter = ''';
77
c1 = stdlib.root_name(stdlib.absolute(p));
88
c2 = '''\").SerialNumber"';
99
cmd = strcat(c0, c1, c2);

0 commit comments

Comments
 (0)