Permalink
Browse files

Merge pull request #8 from robertbasic/feature/7

shell script for usher
  • Loading branch information...
enygma committed Dec 28, 2011
2 parents 0858ff7 + d8f22ae commit c9a74ebedbc58c6b9b99828b45b1325e86bda1dd
Showing with 14 additions and 1 deletion.
  1. +14 −0 usher
  2. +0 −1 usher.php
14 usher
@@ -0,0 +1,14 @@
PHP_BINPATH=$(which php 2> /dev/null)

if [ "$PHP_BINPATH" = '' ]
then
echo "'which' command failed to locate the PHP binary"
exit 1
fi

if [ -x $PHP_BINPATH ]
then
$PHP_BINPATH usher.php "$@"
else
echo "'which' command failed to locate the PHP binary"
fi
@@ -1,4 +1,3 @@
#!/usr/bin/php
<?php
/**
* Usher.php

0 comments on commit c9a74eb

Please sign in to comment.