Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add sanity script.

  • Loading branch information...
commit 8ebb1413e9690adbd28430495e5fdd08e7929aa1 1 parent b9490b6
@reid authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 script/sanity.sh
View
12 script/sanity.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+pkg="package.json"
+npm=`which npm 2>&1`
+ret=$?
+if [ $ret -ne 0 ] || ! [ -x $npm ]; then
+ echo "Install npm, available at http://npmjs.org" >&2
+ exit $ret
+fi
+[ ! -e $pkg ] && cd ..
+[ ! -e $pkg ] && \
+ echo "Unable to find $pkg." >&2 && exit 1
+exit 0
Please sign in to comment.
Something went wrong with that request. Please try again.