#!/bin/sh
set -e
# check to see if protobuf folder is empty
if [ ! -d "$HOME/protobuf/lib" ]; then
  https://github.com/google/protobuf/archive/v3.0.0-beta-1.tar.gz
  tar -xzvf v3.0.0-beta-1.tar.gz
  cd v3.0.0-beta-1 && ./configure --prefix=$HOME/protobuf && make && make install
else
  echo "Using cached directory."
fi

#!/bin/sh
set -e
# check to see if protobuf folder is empty
if [ ! -d "$HOME/protobuf/lib" ]; then
  wget https://github.com/google/protobuf/archive/v3.0.0-beta-1.tar.gz
  tar -xzvf v3.0.0-beta-1.tar.gz
  cd v3.0.0-beta-1 && ./configure --prefix=$HOME/protobuf && make && make install
else
  echo "Using cached directory."
fi

Copy paste is a bad thing...
Copy paste is a bad thing...
