#!/usr/bin/env bash

red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
reset=`tput sgr0`

VERSION="-$(grep version package.json | cut -c 15- | rev | cut -c 3- | rev)"

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
  bin/mason-linux "$@"

elif [[ "$OSTYPE" == "darwin"* ]]; then
  bin/mason-macos "$@"
else
  echo "${yellow}Cannot find a binary for your environment.${reset}"
  exit 1
fi
