mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(.devcontainer): check if ssh folder exists in post_create (#19987)
This commit is contained in:
committed by
GitHub
parent
63631b5b2b
commit
8274251fe1
@@ -10,8 +10,12 @@ install_devcontainer_cli() {
|
|||||||
|
|
||||||
install_ssh_config() {
|
install_ssh_config() {
|
||||||
echo "🔑 Installing SSH configuration..."
|
echo "🔑 Installing SSH configuration..."
|
||||||
|
if [ -d /mnt/home/coder/.ssh ]; then
|
||||||
rsync -a /mnt/home/coder/.ssh/ ~/.ssh/
|
rsync -a /mnt/home/coder/.ssh/ ~/.ssh/
|
||||||
chmod 0700 ~/.ssh
|
chmod 0700 ~/.ssh
|
||||||
|
else
|
||||||
|
echo "⚠️ SSH directory not found."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install_git_config() {
|
install_git_config() {
|
||||||
|
|||||||
Reference in New Issue
Block a user