diff --git a/scripts/functions b/scripts/functions index 9ec06936..3f7f941c 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