From: Brian West Date: Tue, 25 Feb 2014 14:44:54 +0000 (-0600) Subject: FS-6267 I was able to replicate this issue, I've tweaked this to prevent -n X-Git-Tag: v1.5.8~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90b0ea724391c8489cb2b575a450df483748e95d;p=thirdparty%2Ffreeswitch.git FS-6267 I was able to replicate this issue, I've tweaked this to prevent -n --- diff --git a/build/modcheck.sh b/build/modcheck.sh index 85c2b169e1..78f7c93f85 100644 --- a/build/modcheck.sh +++ b/build/modcheck.sh @@ -2,30 +2,22 @@ PATH=$PATH:/bin:/usr/bin mods=$1 +on='' +off='' if [ -z $mods ] ; then mods="/usr/local/freeswitch/mod" fi - echo "Checking module integrity in target [$mods]" echo - here=`pwd` cd $mods files=`ls *.dylib *.so 2>/dev/null` cd $here -alert() { - on='' - off='' - echo -n $on - echo WARNING: $1 - echo -n $off -} - for i in $files ; do mod=${i%%.*} @@ -33,9 +25,9 @@ for i in $files ; do commented=`grep ^\#.*$mod\$ ../modules.conf` if [ -z "$infile" ] ; then - alert "installed module: $i was not installed by this build. It is not present in modules.conf." + echo "${on}WARNING: installed module: $i was not installed by this build. It is not present in modules.conf.${off}" elif [ -n "$commented" ] ; then - alert "installed module: $i was not installed by this build. It is commented from modules.conf. [$commented]" + echo "${on}WARNING: installed module: $i was not installed by this build. It is commented from modules.conf. [$commented]${off}" fi done