#!/bin/bash

job=1
dirname="" #path to where the fcm command will be found
if (( $# >= 1 )) ; then
  dirname=$1
  # check that "dirname" exists and is a directory
  if [[ ! -d $dirname ]] ; then
    echo "$0 error : $dirname is not a directory"
    exit
  fi
  # add a trailing "/" to $dirname
  dirname=${dirname}"/"
  shift;
fi

# run "fcm build" command
echo "${dirname}fcm build $*"
${dirname}fcm build $*


