Skip to content

Commit 5b6ee88

Browse files
committed
If windows Then force to execute run.bat
1 parent b208611 commit 5b6ee88

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

run

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ referenceBranch=""
1111
MessageColor='\033[0;32m'
1212
CancelMessageColor='\033[0m'
1313

14+
function switchRunnerIfWindows() {
15+
case "$(uname -s)" in
16+
CYGWIN*|MINGW*|MSYS*)
17+
echo 'Windows detected => Use run.bat'
18+
./run.bat
19+
exit
20+
;;
21+
esac
22+
}
23+
1424
function askLanguage() {
1525
while true; do
1626
read -p "Language (js, csharp, java, php) ? " response
@@ -345,6 +355,8 @@ function initializeWorkflow(){
345355
git checkout -b $workshopBranch $currentTestTag
346356
}
347357

358+
switchRunnerIfWindows
359+
348360
askLanguage
349361

350362
clean

0 commit comments

Comments
 (0)