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 c5a21e0 commit 3a8fa16Copy full SHA for 3a8fa16
registry/coder/modules/claude-code/main.tf
@@ -97,6 +97,16 @@ resource "coder_script" "claude_code" {
97
command -v "$1" >/dev/null 2>&1
98
}
99
100
+ # Check if the specified folder exists
101
+ if [ ! -d "${var.folder}" ]; then
102
+ echo "Warning: The specified folder '${var.folder}' does not exist."
103
+ echo "Creating the folder..."
104
+ # The folder must exist before tmux is started or else claude will start
105
+ # in the home directory.
106
+ mkdir -p "${var.folder}"
107
+ echo "Folder created successfully."
108
+ fi
109
+
110
# Run pre-install script if provided
111
if [ -n "${local.encoded_pre_install_script}" ]; then
112
echo "Running pre-install script..."
0 commit comments