When retrieving a file, allow preferred extension to be whatever starts with a dot, and not only one of .tar.bz2 .tar.gz .tgz or .tar.

/trunk/scripts/functions |    5     3     2     0 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
This commit is contained in:
Yann E. MORIN" 2008-07-24 06:42:29 +00:00
parent f4f3f526b8
commit adc71fffcc

View File

@ -334,9 +334,10 @@ CT_GetFile() {
local file="$1"
local first_ext=""
shift
# If next argument starts with a dot, then this is not an URL,
# and we can consider that it is a preferred extension.
case "$1" in
.tar.bz2|.tar.gz|.tgz|.tar)
first_ext="$1"
.*) first_ext="$1"
shift
;;
esac