8000 fix(dotfiles): handle failures in dotfiles installation by chazmo03 · Pull Request #387 · coder/modules · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

fix(dotfiles): handle failures in dotfiles installation #387

Merged
merged 8 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dotfiles/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ if [ -n "$${DOTFILES_URI// }" ]; then
DOTFILES_USER_HOME=$(eval echo ~"$DOTFILES_USER")
sudo -u "$DOTFILES_USER" sh -c "'$CODER_BIN' dotfiles '$DOTFILES_URI' -y 2>&1 | tee '$DOTFILES_USER_HOME'/.dotfiles.log"
fi
if [ $? -ne 0 ]; then
echo "Failed to install dotfiles"
exit 1
fi
Loading
0