forked from anviod/edgex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-sync.bat
More file actions
35 lines (28 loc) · 913 Bytes
/
Copy pathstart-sync.bat
File metadata and controls
35 lines (28 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
REM Edge Gateway Sync Quick Start for Windows
REM This script launches Git Bash and runs the setup wizard
echo ==========================================
echo Edge Gateway Sync Setup
echo ==========================================
echo.
REM Check if Git Bash is installed
if exist "C:\Program Files\Git\bin\bash.exe" (
set BASH_PATH="C:\Program Files\Git\bin\bash.exe"
) else if exist "C:\Program Files (x86)\Git\bin\bash.exe" (
set BASH_PATH="C:\Program Files (x86)\Git\bin\bash.exe"
) else (
echo [ERROR] Git Bash not found!
echo Please install Git for Windows from:
echo https://git-scm.com/download/win
pause
exit /b 1
)
echo Found Git Bash at: %BASH_PATH%
echo.
REM Get the script directory
set SCRIPT_DIR=%~dp0
echo Starting setup wizard...
echo.
REM Launch Git Bash with the setup script
%BASH_PATH% --login -i -c "cd '%SCRIPT_DIR%' && bash setup-sync.sh"
pause