From adc71fffcc4f9ba8c4544f208bbf569f93546940 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 24 Jul 2008 06:42:29 +0000 Subject: 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(-) diff --git a/scripts/functions b/scripts/functions index 9ec0693..3f7f941 100644 --- a/scripts/functions +++ b/scripts/functions @@ -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 -- cgit v0.10.2-6-g49f6