Skip to content

Commit

Permalink
remove sudos from install-ubuntu18.04.sh script (tensorflow#304)
Browse files Browse the repository at this point in the history
We're running the script with `sudo` so there is no need for sudos in the script.
  • Loading branch information
marcrasi authored Oct 15, 2019
1 parent c2124ac commit 1680b2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/install-ubuntu1804.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ done

# Install dependencies
DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
Expand Down Expand Up @@ -77,7 +77,7 @@ if [[ ! -z "$JUPYTER_URL" ]]; then
tar -xf "$INSTALL_LOCATION"/swift-jupyter.tar.gz -C "$INSTALL_LOCATION"
rm "$INSTALL_LOCATION"/swift-jupyter.tar.gz

sudo pip3 install -r "$INSTALL_LOCATION"/swift-jupyter/requirements.txt
pip3 install -r "$INSTALL_LOCATION"/swift-jupyter/requirements.txt

python3 "$INSTALL_LOCATION"/swift-jupyter/register.py --user --swift-toolchain "$INSTALL_LOCATION" --swift-python-library /usr/lib/x86_64-linux-gnu/libpython3.6m.so
fi

0 comments on commit 1680b2a

Please sign in to comment.