Skip to content

Commit

Permalink
Fixed if statement condition bug in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
floreskul committed Mar 22, 2015
1 parent c8d4c28 commit e95a840
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions run.sh
Expand Up @@ -2,21 +2,21 @@

# Install dependencies
if [ "$(uname)" == "Darwin" ]; then
if [! python3 -V > /dev/null 2>&1 ]; then
if ! [python3 -V > /dev/null 2>&1 ]; then
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Python3, versions >= 3.4 include pip3 by default
brew install python3
fi
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
if [! python3 -V > /dev/null 2>&1 ]; then
if ! [python3 -V > /dev/null 2>&1 ]; then
apt-get install -y python3
fi
if [! pip3 -V > /dev/null 2>&1 ]; then
if ! [pip3 -V > /dev/null 2>&1 ]; then
apt-get install -y python3-pip
fi
fi
if [! python -c "import nltk" > /dev/null 2>&1 ]; then
if ! [python -c "import nltk" > /dev/null 2>&1 ]; then
pip3 install nltk
fi

Expand Down

0 comments on commit e95a840

Please sign in to comment.