Bug in /usr/local/fop2/autoconfig-buttons-freepbx.sh

There is a bug in /usr/local/fop2/autoconfig-buttons-freepbx.sh

This was pointed out by kouri in View Post 774&p=2854&hilit=too+many+arguments#p2854

Line 15 is:
AMPVERSION=`cat $AMPDIR | grep version | sed -e 's/<[^>]*>//g' | cut -b 2,4`

It should be:
AMPVERSION=`cat $AMPDIR | grep "<version>" | sed -e 's/<[^>]*>//g' | cut -b 2,4`

This is because there are now two lines in admin/modules/framework/module.xml matching "version":
<version>2.7.0.10</version>
*2.7.0.7* add php version to online checking
By adding the "<" and ">", it reduces to one line match, so the version number is correctly extracted again.

Peter

Comments

  • thanks for the report Peter, the fix is already included in the version control system.
Sign In or Register to comment.