Skip to content

Commit 0f7982a

Browse files
authored
Fix mkdir arguments order (microsoft#135182)
When lauching with `env POSIXLY_CORRECT=y code [...]`, VSCode creates two directories named `-m` and `700`. This is because the order of arguments, in a POSIX strict environment, matters.
1 parent bda864b commit 0f7982a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/linux/snap/electron-launch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ if [ -f "$SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders" ]; then
2929
fi
3030

3131
# Create $XDG_RUNTIME_DIR if not exists (to be removed when https://pad.lv/1656340 is fixed)
32-
[ -n "$XDG_RUNTIME_DIR" ] && mkdir -p "$XDG_RUNTIME_DIR" -m 700
32+
[ -n "$XDG_RUNTIME_DIR" ] && mkdir -p -m 700 "$XDG_RUNTIME_DIR"
3333

3434
exec "$@"

0 commit comments

Comments
 (0)