提交 13b26efb authored 作者: Anthony Minessale's avatar Anthony Minessale

find prefix better

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15438 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 227bf958
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论