Sha256: 9318105f711887fdef18ef09d1b2f25cb635592c2990970e18d45cdb7782cec1

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 KB

Contents

#!/bin/sh
shoes_host="http://hacketyhack.net"
shoes_url="$shoes_host/pkg/linux/shoes"
this_dir=`pwd`

shoes="$(which shoes)"
if [ -x "$this_dir/shoes" ] ; then
  shoes="$this_dir/shoes"
fi
if [ -z "$shoes" ] ; then
  shoes="$HOME/.shoes/shoes.run"
fi

if [ ! -x "$shoes" ] ; then
  echo "Downloading Shoes... "

  # First, try wget.
  wget="wget -q -O -"
  wdl="wget -q"
  shoes_pkg="$($wget "$shoes_url" 2>/dev/null)"

  if [ -z "$shoes_pkg" ] ; then
    # Then, try curl.
    wget="curl -s"
    wdl="curl -s -O"
    shoes_pkg="$($wget "$shoes_url" 2>/dev/null)"

    if [ -z "$shoes_pkg" ] ; then
      # Lastly, try bsd fetch.
      wget="fetch -q -o -"
      wdl="fetch -q"
      shoes_pkg="$($wget "$shoes_url" 2>/dev/null)"

      if [ -z "$shoes_pkg" ] ; then
        echo "sorry, couldn't find wget or curl."
        exit 1;
      fi
    fi
  fi

  shoes_run="$shoes_host$shoes_pkg"
  echo "Fetching $shoes_run..."
  mkdir -p $HOME/.shoes
  eval $wget "$shoes_run" > $shoes
  chmod 755 $shoes
fi

eval $shoes -- "$this_dir/#{SCRIPT}"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shoesgem-0.1480.0 shoes/static/stubs/sh-install
shoesgem-0.1469.0 shoes/static/stubs/sh-install
shoesgem-0.1430.0 shoes/static/stubs/sh-install
shoesgem-0.1429.0 shoes/static/stubs/sh-install
shoesgem-0.1428.0 shoes/static/stubs/sh-install
shoesgem-0.1426.0 shoes/static/stubs/sh-install