mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-14 13:28:11 +00:00
When searching a matching extension for a file, also check for the empty extension.
This commit is contained in:
@ -244,7 +244,10 @@ CT_GetFileExtension() {
|
|||||||
local got_it=1
|
local got_it=1
|
||||||
|
|
||||||
CT_Pushd "${CT_TARBALLS_DIR}"
|
CT_Pushd "${CT_TARBALLS_DIR}"
|
||||||
for ext in .tar.gz .tar.bz2 .tgz .tar; do
|
# we need to also check for an empty extension for those very
|
||||||
|
# peculiar components that don't have one (such as sstrip from
|
||||||
|
# buildroot).
|
||||||
|
for ext in .tar.gz .tar.bz2 .tgz .tar ''; do
|
||||||
if [ -f "${file}${ext}" ]; then
|
if [ -f "${file}${ext}" ]; then
|
||||||
echo "${ext}"
|
echo "${ext}"
|
||||||
got_it=0
|
got_it=0
|
||||||
|
Reference in New Issue
Block a user