#!/bin/bash

VERSION=$(node --version | sed -e 's/^v//')

while IFS=".", read MAJOR MINOR REVISION; do
  MISMATCH=1
  if [[ $MAJOR -eq 0 && $MINOR -eq 10 ]]; then
    MISMATCH=
  fi
done < <(echo $VERSION)

if [[ -n "$MISMATCH" ]]; then
  echo "error: node version must be 0.10.x"
  exit 1
fi

#!/bin/bash

VERSION=$(node --version | sed -e 's/^v//')

while IFS=".", read MAJOR MINOR REVISION; do
  MISMATCH=1
  if [[ $MAJOR -eq 6 ]]; then
    MISMATCH=
  fi
done < <(echo $VERSION)

if [[ -n "$MISMATCH" ]]; then
  echo "error: node version must be 6"
  exit 1
fi

Update node version requirement to 6
Update node version requirement to 6

Signed-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>
