mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-03 09:21:29 +00:00
fix modcheck to properly deal with prefix and don't alert on anything that isn't mod_ because ftmod_ gets installed here too and will alert
This commit is contained in:
parent
7b5d17802f
commit
9c053be260
@ -5,6 +5,9 @@ mods=$1
|
|||||||
on='[01;00;35m'
|
on='[01;00;35m'
|
||||||
off='[0m'
|
off='[0m'
|
||||||
|
|
||||||
|
prefix=`cat ../config.log | grep ^prefix=\' | awk -F \' '{print $2}'`
|
||||||
|
mods=${prefix}/mod;
|
||||||
|
|
||||||
if [ -z $mods ] ; then
|
if [ -z $mods ] ; then
|
||||||
mods="/usr/local/freeswitch/mod"
|
mods="/usr/local/freeswitch/mod"
|
||||||
fi
|
fi
|
||||||
@ -15,7 +18,7 @@ echo
|
|||||||
here=`pwd`
|
here=`pwd`
|
||||||
|
|
||||||
cd $mods
|
cd $mods
|
||||||
files=`ls *.dylib *.so 2>/dev/null`
|
files=`ls mod_*.dylib mod_*.so 2>/dev/null`
|
||||||
cd $here
|
cd $here
|
||||||
|
|
||||||
for i in $files ; do
|
for i in $files ; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user