Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add sanity script.

  • Loading branch information...
commit 8ebb1413e9690adbd28430495e5fdd08e7929aa1 1 parent b9490b6
Reid Burke authored November 17, 2011

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. 12  script/sanity.sh
12  script/sanity.sh
... ...
@@ -0,0 +1,12 @@
  1
+#!/bin/sh
  2
+pkg="package.json"
  3
+npm=`which npm 2>&1`
  4
+ret=$?
  5
+if [ $ret -ne 0 ] || ! [ -x $npm ]; then
  6
+    echo "Install npm, available at http://npmjs.org" >&2
  7
+    exit $ret
  8
+fi
  9
+[ ! -e $pkg ] && cd ..
  10
+[ ! -e $pkg ] && \
  11
+    echo "Unable to find $pkg." >&2 && exit 1
  12
+exit 0

0 notes on commit 8ebb141

Please sign in to comment.
Something went wrong with that request. Please try again.