Skip to content

Commit 2fe8994

Browse files
fix #1444 stat call (#716)
1 parent bd400a8 commit 2fe8994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module/PowerShellEditorServices/Start-EditorServices.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ function Set-NamedPipeMode {
232232
chmod $DEFAULT_USER_MODE $PipeFile
233233

234234
if ($IsLinux) {
235-
$mode = stat -c "%a" $PipeFile
235+
$mode = /usr/bin/stat -c "%a" $PipeFile
236236
}
237237
elseif ($IsMacOS) {
238-
$mode = stat -f "%A" $PipeFile
238+
$mode = /usr/bin/stat -f "%A" $PipeFile
239239
}
240240

241241
if ($mode -ne $DEFAULT_USER_MODE) {

0 commit comments

Comments
 (0)