In get_package_tarball_name function, patterns corresponding to #- are

dropped. This should happen only when the digit is at the beginning of the
name. Change the sed accordingly
This commit is contained in:
Pierre Labastie 2014-05-24 08:50:45 +00:00
parent ba57e61b6c
commit 659be15f60

View file

@ -63,7 +63,7 @@ EOF
#----------------------------------#
get_package_tarball_name() { #
#----------------------------------#
local script_name=`echo ${1} | sed -e 's@[0-9]\{1\}-@@'`
local script_name=`echo ${1} | sed -e 's@^[0-9]\{1\}-@@'`
# The use of 'head' is necessary to limit the return value to the FIRST match..
# hopefully this will not cause problems.