Last active
July 28, 2016 19:19
-
-
Save tanner0101/933b2904903ed90481d91dd4c6904aa9 to your computer and use it in GitHub Desktop.
Install Swift on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$(uname)" == "Linux" ]]; then | |
URL=https://swift.org/builds/swift-3.0-preview-1/ubuntu1404/swift-3.0-preview-1/swift-3.0-preview-1-ubuntu14.04.tar.gz | |
START=$(pwd) | |
cd $HOME | |
wget $URL -O - | tar xz | |
export PATH="${HOME}/swift-3.0-preview-1-ubuntu14.04/usr/bin:${PATH}" | |
cd $START | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment