fix(dotfiles): overwrite dotfiles log instead of appending

Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
pull/133/head
Phorcys 1 year ago committed by GitHub
parent a2bdfefeb3
commit b27f396b0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -10,7 +10,7 @@ if [ -n "$${DOTFILES_URI// }" ]; then
echo "✨ Applying dotfiles for user $DOTFILES_USER"
if [ "$DOTFILES_USER" = "$USER" ]; then
coder dotfiles "$DOTFILES_URI" -y 2>&1 | tee -a ~/.dotfiles.log
coder dotfiles "$DOTFILES_URI" -y 2>&1 | tee ~/.dotfiles.log
else
# The "eval echo ~$USER" part is used to dynamically get the home directory of the user, see https://superuser.com/a/484280
# sudo -u coder sh -c 'eval echo ~$USER' -> "/home/coder" ~/projects/coder-modules

Loading…
Cancel
Save