@@ -47,20 +47,40 @@ hooks:
4747 postdeploy :
4848 windows :
4949 run : |
50- Write-Host ""
51- Write-Host "===============================================================" -ForegroundColor Yellow
52- Write-Host " POST-DEPLOYMENT STEP (PowerShell) " -ForegroundColor Green
53- Write-Host "===============================================================" -ForegroundColor Yellow
54- Write-Host ""
50+ # Detect if running in Git Bash or similar Bash environment
51+ if ($env:SHELL -like "*bash*" -or $env:MSYSTEM) {
52+ # Running in Git Bash/MSYS2 environment
53+ Write-Host ""
54+ Write-Host "===============================================================" -ForegroundColor Yellow
55+ Write-Host " POST-DEPLOYMENT STEPS (Bash)" -ForegroundColor Green
56+ Write-Host "===============================================================" -ForegroundColor Yellow
57+ Write-Host ""
5558
56- Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
57- Write-Host " 👉 Run the following command in PowerShell :" -ForegroundColor White
58- Write-Host " infra\ scripts\Selecting-Team-Config-And-Data.ps1 " -ForegroundColor Cyan
59- Write-Host ""
59+ Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
60+ Write-Host " 👉 Run the following command in Bash :" -ForegroundColor White
61+ Write-Host " bash infra/ scripts/selecting_team_config_and_data.sh " -ForegroundColor Cyan
62+ Write-Host ""
6063
61- Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
62- Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
63- Write-Host ""
64+ Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
65+ Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
66+ Write-Host ""
67+ } else {
68+ # Running in PowerShell
69+ Write-Host ""
70+ Write-Host "===============================================================" -ForegroundColor Yellow
71+ Write-Host " POST-DEPLOYMENT STEP (PowerShell) " -ForegroundColor Green
72+ Write-Host "===============================================================" -ForegroundColor Yellow
73+ Write-Host ""
74+
75+ Write-Host " Upload Team Configurations and index sample data" -ForegroundColor White
76+ Write-Host " 👉 Run the following command in PowerShell:" -ForegroundColor White
77+ Write-Host " infra\scripts\Selecting-Team-Config-And-Data.ps1" -ForegroundColor Cyan
78+ Write-Host ""
79+
80+ Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
81+ Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
82+ Write-Host ""
83+ }
6484
6585 shell : pwsh
6686 interactive : true
0 commit comments