diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-07-27 22:14:08 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-07-27 22:14:08 +0200 |
commit | 795d135b7fc4db7c6ce743d9847af38ae60fab5e (patch) | |
tree | 386801ba36f7be45ce88bacab97ac22cd213e1ae /scripts/build/libc | |
parent | 82f9efebd84c7fd34732bdcaf18c9e1a99d7fcc4 (diff) | |
download | crosstool-ng-795d135b7fc4db7c6ce743d9847af38ae60fab5e.tar.gz crosstool-ng-795d135b7fc4db7c6ce743d9847af38ae60fab5e.tar.bz2 crosstool-ng-795d135b7fc4db7c6ce743d9847af38ae60fab5e.zip |
[libc-eglibc] Fix testing for existing files
To test for existing files, use "[ -f blabla ]", not "[ -a blabla ]"
Checking for a file exsitence with "-a" is a bashism.
Althoug we _are_ using bash, it's disturbing as it can be misread as
the 'and' operator. Fix by using "-f".
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/eglibc.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/build/libc/eglibc.sh b/scripts/build/libc/eglibc.sh index 18fac761..dcce76c9 100644 --- a/scripts/build/libc/eglibc.sh +++ b/scripts/build/libc/eglibc.sh @@ -41,18 +41,18 @@ do_libc_get() { eglibc_ports="${CT_LIBC}-ports-${CT_LIBC_VERSION}.tar.bz2" # Check if every tarballs are already present - if [ -a "${CT_TARBALLS_DIR}/${eglibc}" ] && \ - [ -a "${CT_TARBALLS_DIR}/${eglibc_linuxthreads}" ] && \ - [ -a "${CT_TARBALLS_DIR}/${eglibc_localedef}" ] && \ - [ -a "${CT_TARBALLS_DIR}/${eglibc_ports}" ]; then + if [ -f "${CT_TARBALLS_DIR}/${eglibc}" ] && \ + [ -f "${CT_TARBALLS_DIR}/${eglibc_linuxthreads}" ] && \ + [ -f "${CT_TARBALLS_DIR}/${eglibc_localedef}" ] && \ + [ -f "${CT_TARBALLS_DIR}/${eglibc_ports}" ]; then CT_DoLog DEBUG "Already have 'eglibc-${CT_LIBC_VERSION}'" return 0 fi - if [ -a "${CT_LOCAL_TARBALLS_DIR}/${eglibc}" ] && \ - [ -a "${CT_LOCAL_TARBALLS_DIR}/${eglibc_linuxthreads}" ] && \ - [ -a "${CT_LOCAL_TARBALLS_DIR}/${eglibc_localedef}" ] && \ - [ -a "${CT_LOCAL_TARBALLS_DIR}/${eglibc_ports}" ] && \ + if [ -f "${CT_LOCAL_TARBALLS_DIR}/${eglibc}" ] && \ + [ -f "${CT_LOCAL_TARBALLS_DIR}/${eglibc_linuxthreads}" ] && \ + [ -f "${CT_LOCAL_TARBALLS_DIR}/${eglibc_localedef}" ] && \ + [ -f "${CT_LOCAL_TARBALLS_DIR}/${eglibc_ports}" ] && \ [ "${CT_FORCE_DOWNLOAD}" != "y" ]; then CT_DoLog DEBUG "Got 'eglibc-${CT_LIBC_VERSION}' from local storage" for file in ${eglibc} ${eglibc_linuxthreads} ${eglibc_localedef} ${eglibc_ports}; do |