Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
fix install-protobuf.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinker1991 committed Apr 13, 2018
1 parent 48a994c commit 4743ea0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install-protobuf.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/sh
set -e
# check to see if protobuf folder is empty
rm -rf $HOME/protobuf/lib
if [ ! -d "$HOME/protobuf/lib" ]; then
wget https://github.com/google/protobuf/releases/download/v3.5.1/protobuf-all-3.5.1.tar.gz
tar -xzvf protobuf-all-3.5.1.tar.gz
wget https://github.com/google/protobuf/releases/download/v3.5.1/protobuf-java-3.5.1.tar.gz
tar -xzvf protobuf-java-3.5.1.tar.gz
cd protobuf-3.5.1 && ./configure --prefix=$HOME/protobuf && make && make install
else
echo "Using cached directory."
Expand Down

0 comments on commit 4743ea0

Please sign in to comment.