Skip to content

Commit 319574a

Browse files
committed
Attempt to make it compatible with linux & windows
1 parent 62212d9 commit 319574a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

runDemo.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33
trap "exit" INT TERM ERR
44
trap "kill 0" EXIT
55

6+
# command and option to call ganache-cli without blocking the shell in linux environments
7+
shell=sh
8+
option=-c
9+
10+
# command and option to call ganache-cli without blocking the shell in Windows environment
11+
if [[ "$OSTYPE" = "msys" ]]; then
12+
shell=cmd
13+
option="//c start"
14+
fi
15+
616
echo "Initalizing Ganache..."
717

8-
cmd //c start ganache-cli -a 10 -d -m "pumpkin immense certain snack please patch universe leisure reopen truth eight gown" -p 7545
18+
$shell $option ganache-cli -a 10 -d -m "pumpkin immense certain snack please patch universe leisure reopen truth eight gown" -p 7545
919

1020
sleep 3
1121
read -p 'Choose milestone to test: ' milestone

0 commit comments

Comments
 (0)