ensure .ssh folder has correct permissions on creation

This commit is contained in:
Stefen Auris 2019-07-10 14:53:53 -04:00
parent 046f04ddf1
commit dd0dfe6067

View file

@ -12,10 +12,11 @@ stow prezto
if [ ! "~/.ssh" ]
then
mkdir ~/.ssh
stow ssh
fi
stow ssh
chmod 0700 ~/.ssh
chmod -R 0600 ~/.ssh/*
ln -s "$HOME/stevset/mc" ~/.config/mc
cp "$HOME/stevset/mc" ~/.config/mc
#setup prezto
echo "Initializing Prezto"
@ -54,9 +55,6 @@ if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
git config --global user.email "$email"
fi
echo "Initializing Submodules"
git submodule init && git submodule update
echo "*******************************"
echo "* Restart your terminal *"
echo "*******************************"