Skip to content

Commit

Permalink
Check that .config is owned by user
Browse files Browse the repository at this point in the history
  • Loading branch information
erichlf committed Jun 20, 2024
1 parent 362e378 commit 898d3f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/devcontainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ sudo chsh -s /usr/bin/zsh
git submodule init
git submodule update

# ensure that .config is owned by the current user
if [[ -d $HOME/.config && ! $(stat -c "%U" $HOME/.config) == "$(whoami)" ]]; then
sudo chown $UID:$GID $HOME/.config
fi

# create links to dotfiles
sym_links

Expand Down

0 comments on commit 898d3f9

Please sign in to comment.