Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 17 lines (13 sloc) 0.339 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh

src="http://jslint.com/jslint.js"
out="`dirname $0`/lib/jslint.js"

# use wget if available, curl if not
if type -t wget > /dev/null; then
fetch_cmd="wget -O"
elif type -t curl > /dev/null; then
fetch_cmd="curl -o"
else
echo "wget or curl must be installed to fetch '$src'";
    exit 1;
fi

$fetch_cmd "$out" "$src"
Something went wrong with that request. Please try again.