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,4It should be:
AMPVERSION=cat $AMPDIR | grep "<version>" | sed -e 's/<[^>]*>//g' | cut -b 2,4This 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
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login