Skip to content

Commit 0ff353c

Browse files
Add bat scripts
1 parent 6e3535b commit 0ff353c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@echo off
2+
3+
REM Open Git Bash and run the script to seed the database, suppressing all output
4+
"C:\Program Files\Git\bin\bash.exe" -c "bash data/bash-scripts/seed_local_dynamodb.sh >nul 2>&1"
5+
6+
REM Check the exit code of the last command
7+
IF ERRORLEVEL 1 (
8+
echo Seeding data failed. Check the console for details.
9+
exit /b 1
10+
) ELSE (
11+
echo Data seeded successfully.
12+
)
13+
14+
exit /b 0
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@echo off
2+
3+
REM Open Git Bash and run the script to create the DynamoDB table, suppressing all output
4+
"C:\Program Files\Git\bin\bash.exe" -c "bash data/bash-scripts/start_local_dynamodb.sh >nul 2>&1"
5+
6+
REM Check the exit code of the last command
7+
IF ERRORLEVEL 1 (
8+
echo Script to create table failed. Check the console for details.
9+
exit /b 1
10+
) ELSE (
11+
echo Database created successfully.
12+
)
13+
14+
exit /b 0

0 commit comments

Comments
 (0)