Permalink
Browse files

Bye bye install script!

  • Loading branch information...
sickill committed Oct 6, 2013
1 parent 7a98763 commit e45ced567ec5d7d6ad70fe89b0f4ff9c382b25fc
Showing with 0 additions and 39 deletions.
  1. +0 −39 install
View
39 install
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-# _ _ _
-# (_|_) (_)
-# __ _ ___ ___ _ _ _ ___
-# / _` / __|/ __| | | | |/ _ \
-# | (_| \__ \ (__| | |_| | (_) |
-# \__,_|___/\___|_|_(_)_|\___/
-#
-# asciinema recorder installation script
-
-BIN_NAME="asciinema"
-BIN_URL="https://raw.github.com/sickill/asciinema/master/bin/asciinema"
-SUDO=""
-
-if [ -d "$HOME/bin" ] && [[ ":$PATH:" == *":~/bin:"* || ":$PATH:" == *":$HOME/bin:"* ]]; then
- TARGET="$HOME/bin/$BIN_NAME"
- echo "Installing to $TARGET..."
-elif [ -d "/usr/local/bin" ] && [[ ":$PATH:" == *":/usr/local/bin:"* ]]; then
- TARGET="/usr/local/bin/$BIN_NAME"
- echo "Installing to $TARGET..."
-
- if [ ! -w /usr/local/bin ]; then
- SUDO=sudo
- echo "You may be asked for sudo password to save the file in /usr/local/bin directory"
- fi
-else
- TARGET="./$BIN_NAME"
- echo "Couldn't find ~/bin or /usr/local/bin in your \$PATH, saving in current dir..."
-fi
-
-$SUDO curl -skL $BIN_URL -o $TARGET
-
-if [[ $? == 0 ]]; then
- $SUDO chmod +x $TARGET
- echo "Done. Now start recording by typing \"asciinema\"."
-else
- echo "Oopsie, something unexpected happened."
-fi

0 comments on commit e45ced5

Please sign in to comment.