Skip to content

Commit

Permalink
If windows Then force to execute run.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
fpellet committed May 16, 2016
1 parent b208611 commit 5b6ee88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ referenceBranch=""
MessageColor='\033[0;32m'
CancelMessageColor='\033[0m'

function switchRunnerIfWindows() {
case "$(uname -s)" in
CYGWIN*|MINGW*|MSYS*)
echo 'Windows detected => Use run.bat'
./run.bat
exit
;;
esac
}

function askLanguage() {
while true; do
read -p "Language (js, csharp, java, php) ? " response
Expand Down Expand Up @@ -345,6 +355,8 @@ function initializeWorkflow(){
git checkout -b $workshopBranch $currentTestTag
}

switchRunnerIfWindows

askLanguage

clean
Expand Down

0 comments on commit 5b6ee88

Please sign in to comment.