From 8274251fe1a825b563b8b25633c4a4bcaead16ea Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 8 Oct 2025 10:24:13 +0300 Subject: [PATCH] fix(.devcontainer): check if ssh folder exists in post_create (#19987) --- .devcontainer/scripts/post_create.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.devcontainer/scripts/post_create.sh b/.devcontainer/scripts/post_create.sh index a1b774f98d..ab5be4ba1b 100755 --- a/.devcontainer/scripts/post_create.sh +++ b/.devcontainer/scripts/post_create.sh @@ -10,8 +10,12 @@ install_devcontainer_cli() { install_ssh_config() { echo "🔑 Installing SSH configuration..." - rsync -a /mnt/home/coder/.ssh/ ~/.ssh/ - chmod 0700 ~/.ssh + if [ -d /mnt/home/coder/.ssh ]; then + rsync -a /mnt/home/coder/.ssh/ ~/.ssh/ + chmod 0700 ~/.ssh + else + echo "⚠️ SSH directory not found." + fi } install_git_config() {