Sha256: 3dda39b78ae8d049a7dc27cb97b89f6aed12967cdc3de7da593e48a49c220f44

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

#!/usr/bin/env bash
script="${BASH_SOURCE%/*}/../script/grapht.coffee"

phantom_version=`phantomjs -v`
if [ $? -ne 0 ]; then
  echo "could not find phantomjs!"
  exit 1
fi

if [ "$#" -ge 1 ]; then
  if [ ! -t 0 ]; then
    phantomjs $script $@ < /dev/stdin
  else
    echo "ERROR:"
    echo "-- grapht was called without STDIN data."
    exit 1
  fi
else
  echo "ERROR:"
  echo "-- grapht was called with unknown arguments:"
  echo "-- grapht requires an initial argument, specifying the graph type."
  exit 1
fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grapht-0.1.9 bin/grapht
grapht-0.1.8 bin/grapht