Skip to content

Commit 6ad5284

Browse files
committed
compile.sh: stop on error, "sh" doesn't like pushd / popd
1 parent f136af3 commit 6ad5284

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

compile.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1+
set -e
12
echo
23
echo ' ===> Building Java in-memory compiler <==='
34
echo
4-
pushd InMemoryCompilers/Java > /dev/null
5+
cd InMemoryCompilers/Java
56
mvn compile
67
mkdir lib/ 2> /dev/null
78
cp ~/.m2/repository/com/google/code/gson/gson/2.8.1/gson-2.8.1.jar lib/
8-
popd > /dev/null
9+
cd ../../
910

1011
echo
1112
echo ' ===> Building C# in-memory compiler <==='
1213
echo
13-
pushd InMemoryCompilers/CSharp > /dev/null
14+
cd InMemoryCompilers/CSharp
1415
dotnet build
15-
popd > /dev/null
16+
cd ../../
1617

1718
echo
1819
echo ' ===> Installing npm dependencies <==='

0 commit comments

Comments
 (0)