open_wrapper.sh: make the wrapper script POSIX shell compliant
authorAntonio Ospite <ao2@ao2.it>
Fri, 29 Jul 2016 14:07:07 +0000 (16:07 +0200)
committerAntonio Ospite <ao2@ao2.it>
Fri, 29 Jul 2016 14:14:07 +0000 (16:14 +0200)
commitddc6d336faa0901fd33cf9de30daaf670c53d68b
tree501e473fc0747a360d25f146921af5d59f7255bf
parentbc6c68a6ef93db27ee08b331e08790ade0d040e4
open_wrapper.sh: make the wrapper script POSIX shell compliant

Running open_wrapper.sh was failing with some shells different from
bash, because they don't support substring expansion.

For example, dash was giving this error:

  ./open_wrapper.sh: 35: ./open_wrapper.sh: Bad substitution

While fixing the issue also use a stricter check for the URL: the anchor
should only contain hex digits.
open_wrapper.sh