@@ -31,8 +31,8 @@ print_error() {
3131
3232print_header () {
3333 echo " "
34- echo " 🚀 Sourcegraph Revenue Team Workstation Setup"
35- echo " ============================================= "
34+ echo " Sourcegraph Revenue Team Workstation Setup"
35+ echo " =========================================="
3636 echo " "
3737 print_info " This will set up your macOS workstation with all the tools needed for demos and development."
3838 print_info " Estimated time: 15-30 minutes (depending on internet speed)"
@@ -87,15 +87,15 @@ check_github_access() {
8787 echo " "
8888 print_info " Please choose one of these authentication methods:"
8989 echo " "
90- echo " 1. 📱 GitHub CLI (Recommended):"
90+ echo " 1. GitHub CLI (Recommended):"
9191 print_info " Install: brew install gh"
9292 print_info " Login: gh auth login"
9393 echo " "
94- echo " 2. 🔐 SSH Key:"
94+ echo " 2. SSH Key:"
9595 print_info " Generate: ssh-keygen -t ed25519 -C \" your_email@example.com\" "
9696 print_info " Add to GitHub: https://github.com/settings/keys"
9797 echo " "
98- echo " 3. 🌐 Personal Access Token:"
98+ echo " 3. Personal Access Token:"
9999 print_info " Create: https://github.com/settings/tokens"
100100 print_info " Configure: git config --global github.token YOUR_TOKEN"
101101 echo " "
@@ -124,8 +124,14 @@ setup_repository() {
124124 # Update repository
125125 git fetch origin > /dev/null 2>&1
126126 if [[ " $current_branch " == " main" ]]; then
127- git pull origin main > /dev/null 2>&1
128- print_success " Updated to latest version"
127+ # Check if working directory is clean
128+ if git diff-index --quiet HEAD -- 2> /dev/null; then
129+ git pull origin main > /dev/null 2>&1
130+ print_success " Updated to latest version"
131+ else
132+ print_warning " Repository has uncommitted changes, skipping update"
133+ print_info " Using current version for installation"
134+ fi
129135 else
130136 print_warning " Repository is on branch '$current_branch ', not 'main'"
131137 print_info " Consider switching to main for latest updates"
@@ -397,7 +403,7 @@ main() {
397403 run_installer
398404
399405 echo " "
400- print_success " 🎉 Setup complete!"
406+ print_success " Setup complete!"
401407 print_info " You can now use the 'revenue' command to manage your workstation and demos."
402408 print_info " Try: revenue demo list"
403409 echo " "
0 commit comments