We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62212d9 commit 319574aCopy full SHA for 319574a
runDemo.sh
@@ -3,9 +3,19 @@
3
trap "exit" INT TERM ERR
4
trap "kill 0" EXIT
5
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
16
echo "Initalizing Ganache..."
17
-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
19
20
sleep 3
21
read -p 'Choose milestone to test: ' milestone
0 commit comments