Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8274251

Browse files
authored
fix(.devcontainer): check if ssh folder exists in post_create (#19987)
1 parent63631b5 commit8274251

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎.devcontainer/scripts/post_create.sh‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ install_devcontainer_cli() {
1010

1111
install_ssh_config() {
1212
echo"🔑 Installing SSH configuration..."
13-
rsync -a /mnt/home/coder/.ssh/~/.ssh/
14-
chmod 0700~/.ssh
13+
if [-d /mnt/home/coder/.ssh ];then
14+
rsync -a /mnt/home/coder/.ssh/~/.ssh/
15+
chmod 0700~/.ssh
16+
else
17+
echo"⚠️ SSH directory not found."
18+
fi
1519
}
1620

1721
install_git_config() {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp