]> git.pld-linux.org Git - packages/openssl.git/commitdiff
- use 'ls -1 *' in place of 'for f in *' to avoid problems with spaces in file names
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 5 May 2010 11:49:47 +0000 (11:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openssl-c_rehash.sh -> 1.4

openssl-c_rehash.sh

index 14f7e4c4f4a27be6cb2f06e7e83c2a07146aaa9b..068a0608f763cfe34e8860980e1defdb94a6a6f5 100644 (file)
@@ -131,14 +131,8 @@ hash_dir()
 
     cd ${1}
 
-    for FILE in *
+    ls -1 * 2>/dev/null | while read FILE
     do
-       # no files in directory at all, no point in continuing
-       if ! [ -f ${FILE} ]
-       then
-           return 1
-       fi
-
         if echo ${FILE} | grep -q -E '^[[:xdigit:]]{8}\.r?[[:digit:]]+$' \
                && [ -h "${FILE}" ]
         then
@@ -146,14 +140,8 @@ hash_dir()
         fi
     done
 
-    for FILE in *.pem
+    ls -1 *.pem 2>/dev/null | while read FILE
     do
-       # no pem files so FILE gets set to the unexpanded *.pem
-       if ! [ -f ${FILE} ]
-       then
-           break
-       fi
-
        check_file ${FILE}
         local FILE_TYPE=${?}
        local TYPE_STR=''
This page took 0.038797 seconds and 4 git commands to generate.