From 63c0712cd4a67a260b9e9aee07e83004a6839dee Mon Sep 17 00:00:00 2001 From: Phorcys <57866459+phorcys420@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:45:25 +0100 Subject: [PATCH] fix(dotfiles): get the proper user's home directory + additionnal safety --- dotfiles/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/run.sh b/dotfiles/run.sh index 9111450..201380d 100644 --- a/dotfiles/run.sh +++ b/dotfiles/run.sh @@ -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