From 0f7982a344dfc182b61338fbbcad0912d2fb01f1 Mon Sep 17 00:00:00 2001 From: Issam Maghni Date: Mon, 25 Oct 2021 08:40:32 -0400 Subject: [PATCH] Fix mkdir arguments order (#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. --- resources/linux/snap/electron-launch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/linux/snap/electron-launch b/resources/linux/snap/electron-launch index 9f4eb6a23b8..87011928b49 100755 --- a/resources/linux/snap/electron-launch +++ b/resources/linux/snap/electron-launch @@ -29,6 +29,6 @@ if [ -f "$SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders" ]; then fi # Create $XDG_RUNTIME_DIR if not exists (to be removed when https://pad.lv/1656340 is fixed) -[ -n "$XDG_RUNTIME_DIR" ] && mkdir -p "$XDG_RUNTIME_DIR" -m 700 +[ -n "$XDG_RUNTIME_DIR" ] && mkdir -p -m 700 "$XDG_RUNTIME_DIR" exec "$@"