#!/bin/bash
#< Library of common shell script functions

ECHO="/usr/bin/echo"

function print_error {
   ${ECHO} "Error: $@" >&2
}

function requires {
   if [ -e "$1" ]; then
      return 0
   else
      return 1
   fi   
}

function is_exe {
   if [ -x "$1" ]; then
      return 0
   else
      return 1
   fi
}