fix(dotfiles): get the proper user's home directory

+ additionnal safety
pull/133/head
Phorcys 1 year ago committed by GitHub
parent b27f396b0e
commit 63c0712cd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -16,6 +16,6 @@ if [ -n "$${DOTFILES_URI// }" ]; then
# sudo -u coder sh -c 'eval echo ~$USER' -> "/home/coder" ~/projects/coder-modules
# sudo sh -c 'eval echo ~$USER' -> "/root"
sudo -u "$DOTFILES_USER" sh -c "$(which coder) dotfiles \"$DOTFILES_URI\" -y 2>&1 | tee -a $(eval echo ~$USER)/.dotfiles.log"
sudo -u "$DOTFILES_USER" sh -c "$(which coder) dotfiles \"$DOTFILES_URI\" -y 2>&1 | tee -a $(eval echo ~\'$DOTFILES_USER\')/.dotfiles.log"
fi
fi

Loading…
Cancel
Save