Skip to content

Commit

Permalink
Fix dev container initialization on Windows (#4327)
Browse files Browse the repository at this point in the history
  • Loading branch information
marrobi authored Feb 6, 2025
1 parent 052aeff commit 7ae3d18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,5 @@
],
// Run commands after the container is created.
"postCreateCommand": "./.devcontainer/scripts/post-create.sh",
"initializeCommand": "mkdir -p $HOME/.azure $HOME/.config || true"
"initializeCommand": ["./.devcontainer/scripts/initialize"]
}
3 changes: 3 additions & 0 deletions .devcontainer/scripts/initialize
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

mkdir -p "$HOME/.azure" "$HOME/.config" || true
2 changes: 2 additions & 0 deletions .devcontainer/scripts/initialize.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
mkdir %USERPROFILE%\.azure %USERPROFILE%\.config || exit /b 0

0 comments on commit 7ae3d18

Please sign in to comment.