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 73f990bCopy full SHA for 73f990b
registry/coder/modules/claude-code/main.tf
@@ -97,6 +97,13 @@ 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 "Error: The specified folder '${var.folder}' does not exist."
103
+ echo "Please ensure the folder exists before running Claude Code."
104
+ exit 1
105
+ fi
106
+
107
# Run pre-install script if provided
108
if [ -n "${local.encoded_pre_install_script}" ]; then
109
echo "Running pre-install script..."
0 commit comments