#!/bin/bash PHPCLI=`which php-cli 2>/dev/null` if [ "x$PHPCLI" == "x" ]; then PHPCLI=`which php 2>/dev/null` fi # Find path to web/public dir realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } PUBLIC_DIR=`realpath "$0"|sed 's_agendavcli\$__g'`../web/public $PHPCLI "${PUBLIC_DIR}"/index.php cli ${1-}