projects
/
genkernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b7a16e
)
Fix warning "rm: cannot remove `/var/cache/genkernel/src': Is a directory" (bug ...
author
Sebastian Pipping
<sebastian@pipping.org>
Tue, 11 Jan 2011 11:18:05 +0000
(12:18 +0100)
committer
Sebastian Pipping
<sebastian@pipping.org>
Tue, 11 Jan 2011 11:18:05 +0000
(12:18 +0100)
gen_funcs.sh
patch
|
blob
|
history
diff --git
a/gen_funcs.sh
b/gen_funcs.sh
index 2a87b1474bd6f1330e5b5ab085c7337b79a799ae..12722ca58c368306719a5ce120881f3fec35afbd 100755
(executable)
--- a/
gen_funcs.sh
+++ b/
gen_funcs.sh
@@
-250,13
+250,11
@@
setup_cache_dir()
if [ "${CLEAR_CACHE_DIR}" == 'yes' ]
then
print_info 1 "Clearing cache dir contents from ${CACHE_DIR}"
- CACHE_DIR_CONTENTS=`ls ${CACHE_DIR}|grep -v CVS|grep -v cpio|grep -v README`
-
- for i in ${CACHE_DIR_CONTENTS}
+ while read i
do
print_info 1 " >> removing ${i}"
- rm
${CACHE_DIR}/${i}
- done
+ rm
"${i}"
+ done
< <(find "${CACHE_DIR}" -maxdepth 1 -type f -name '*.tar.*')
fi
}