find prefix better

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15438 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-11-12 03:46:43 +00:00
parent 227bf9580a
commit 13b26efba1
1 changed files with 4 additions and 2 deletions

View File

@ -4,10 +4,12 @@ arg=$1
shift
prefix=$(cat config.status | grep @prefix@ | awk -F, '{print $3}')
if [ -z "$prefix" ] ; then
prefix=$(cat config.status | grep '"prefix"' | awk -F\" '{print $4}')
fi
if [ -z "$prefix" ] ; then
echo "Cannot determine prefix!"
exit 255
prefix="/usr/local/freeswitch"
fi
if [ "$arg" = "gcore" ] ; then