We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f675744 commit eecfe02Copy full SHA for eecfe02
module/PowerShellEditorServices/Start-EditorServices.ps1
@@ -222,13 +222,20 @@ function Set-NamedPipeMode {
222
[string]
223
$PipeFile
224
)
225
+
226
+ if ($IsWindows) {
227
+ return
228
+ }
229
230
chmod $DEFAULT_USER_MODE $PipeFile
231
232
if ($IsLinux) {
- $mode = stat -c "%A" $PipeFile
233
+ $mode = stat -c "%a" $PipeFile
234
}
- else {
235
+ elseif ($IsMacOS) {
236
$mode = stat -f "%A" $PipeFile
237
238
239
if ($mode -ne $DEFAULT_USER_MODE) {
240
ExitWithError "Permissions to the pipe file were not set properly. Expected: $DEFAULT_USER_MODE Actual: $mode for file: $PipeFile"
241
0 commit comments