Skip to content

Instantly share code, notes, and snippets.

@hanshoglund
Created July 16, 2012 15:31
Show Gist options
  • Save hanshoglund/3123346 to your computer and use it in GitHub Desktop.
Save hanshoglund/3123346 to your computer and use it in GitHub Desktop.
Install script for dist (Unix)
#!/bin/bash
# This script will install the latest version of Dist
# See also https://github.com/hanshoglund/dist
VERSION=1.3.1
wget "https://github.com/downloads/hanshoglund/dist/dist-unix-${VERSION}.tar.gz"
tar -xvzf "dist-unix-${VERSION}.tar.gz"
pushd "dist-unix-${VERSION}"
sudo cp -vR bin/ /usr/bin;
sudo cp -vR man/ /usr/share/man;
popd
rm "dist-unix-${VERSION}.tar.gz"
rm -rf dist-unix
echo "Installed dist to:" `which dist`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment