File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,22 @@ config_remote() {
32
32
}
33
33
34
34
# Setup special .ssh files
35
- #
35
+ # Prints out lines of text to make things pretty
36
36
# Param 1: bash array, filenames relative to the customization directory that should be copied to ~/.ssh
37
37
setup_ssh () {
38
- mkdir -p ~ /.ssh
38
+ echo " starting ~/.ssh directory setup..."
39
+ mkdir -p " ${HOME} .ssh"
40
+ chmod 0700 " ${HOME} /.ssh"
41
+ echo " -----"
39
42
local files=(" $@ " )
40
43
for file in " ${files[@]} " ; do
41
44
local cfile=" /devcontainer-customization/${file} "
42
- local hfile=" ~ /.ssh/${file} "
45
+ local hfile=" ${HOME} /.ssh/${file} "
43
46
if [ ! -f " ${hfile} " ]; then
44
- echo " copying ${file} "
47
+ echo " copying \" ${file} \" "
45
48
cp " ${cfile} " " ${hfile} "
46
49
chmod 600 " ${hfile} "
47
50
fi
48
51
done
49
- ls ~ /.ssh
52
+ echo " ~/.ssh directory setup complete! "
50
53
}
You can’t perform that action at this time.
0 commit comments