mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(.devcontainer): check if ssh folder exists in post_create (#19987)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user