From f7d948653003eaec32bff70b8cf158d8595a6d9e Mon Sep 17 00:00:00 2001 From: Phorcys <57866459+phorcys420@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:17:29 +0100 Subject: [PATCH] chore(dotfiles); fix comments in run.sh --- dotfiles/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/run.sh b/dotfiles/run.sh index 201380d..8c6a8ec 100644 --- a/dotfiles/run.sh +++ b/dotfiles/run.sh @@ -12,9 +12,9 @@ if [ -n "$${DOTFILES_URI// }" ]; then if [ "$DOTFILES_USER" = "$USER" ]; then 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 - # sudo sh -c 'eval echo ~$USER' -> "/root" + # The "eval echo ~$DOTFILES_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 ~$DOTFILES_USER' -> "/home/coder" + # sudo sh -c 'eval echo ~$DOTFILES_USER' -> "/root" sudo -u "$DOTFILES_USER" sh -c "$(which coder) dotfiles \"$DOTFILES_URI\" -y 2>&1 | tee -a $(eval echo ~\'$DOTFILES_USER\')/.dotfiles.log" fi