mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
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:
parent
f4f3f526b8
commit
adc71fffcc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user