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