Skip to content

Commit 972bc77

Browse files
committed
Fix install script
1 parent 5d3e98b commit 972bc77

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/bash
22
sudo apt-get install -y build-essential libcap-dev cmake
33
# Install z3
4-
if [ ! $(python -c "import z3") ]; then
4+
python2 -c "import z3"
5+
NOT_INSTALLED=$?
6+
if [ $NOT_INSTALLED == 1 ]
7+
then
58
git clone https://github.com/Z3Prover/z3
69
cd z3
710
python scripts/mk_make.py --python
@@ -12,7 +15,10 @@ if [ ! $(python -c "import z3") ]; then
1215
fi
1316

1417
# Install triton
15-
if [ ! $(python -c "import triton") ]; then
18+
python2 -c "import triton"
19+
NOT_INSTALLED=$?
20+
if [ $NOT_INSTALLED == 1 ]
21+
then
1622
git clone https://github.com/JonathanSalwan/Triton.git
1723
cd Triton
1824
mkdir build

0 commit comments

Comments
 (0)