summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions5
1 files 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