fix permissions on /home/user/ after dotfiles extraction

This commit is contained in:
zotan 2018-02-11 18:05:40 +01:00
parent 9193b7e9ac
commit 68c8ff350c
No known key found for this signature in database
GPG key ID: A8DA209231E36475

View file

@ -57,6 +57,8 @@ if [[ $? -ne 0 ]]; then
curl -fsSL https://gist.githubusercontent.com/anonymous/c2a9e0ea86b5fb9c7971182f461e33e4/raw/567a15b8491cb9106c53835c731e583d3b12d7b5/gistfile1.txt >> /home/$SUDO_USER/.zshrc
fi
chown $SUDO_USER:$SUDO_USER /home/$SUDO_USER -R
cat /home/$SUDO_USER/.zshrc | grep "alias gst=" -q
if [[ $? -ne 0 ]]; then
printf "\n" >> /home/$SUDO_USER/.zshrc