diff options
author | Dirk Husemann <dirk@d2h.net> | 2015-03-13 16:21:38 +0100 |
---|---|---|
committer | Dirk Husemann <dirk@d2h.net> | 2015-06-02 07:45:57 +0200 |
commit | 0130065c0a3b0222cb6a3291f82fb7a0824b853b (patch) | |
tree | 0f7e97797f46530c320e50acc27272a070296b2c /scripts/functions | |
parent | 41722f59d94a66dafef4e454d695aa81879fa0e3 (diff) | |
download | crosstool-ng-0130065c0a3b0222cb6a3291f82fb7a0824b853b.tar.gz crosstool-ng-0130065c0a3b0222cb6a3291f82fb7a0824b853b.tar.bz2 crosstool-ng-0130065c0a3b0222cb6a3291f82fb7a0824b853b.zip |
Update functions to grok symlinks
when specifying a custom kernel provided as a tar ball, the tar ball gets symlinked. the -e test will fail.
Signed-off-by: Dirk Husemann <dirk@d2h.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index a309f2d9..adb9f699 100644 --- a/scripts/functions +++ b/scripts/functions @@ -543,7 +543,7 @@ CT_GetFileExtension() { # peculiar components that don't have one (such as sstrip from # buildroot). for ext in ${first_ext} $(CT_DoListTarballExt) /.git ''; do - if [ -e "${CT_TARBALLS_DIR}/${file}${ext}" ]; then + if [ -e "${CT_TARBALLS_DIR}/${file}${ext}" -o -L "${CT_TARBALLS_DIR}/${file}${ext}" ]; then echo "${ext}" exit 0 fi |