Allow wildcards in PURGE_TARGETS to match any type of file except for directories.
Signed-off-by: Jeremy Huntwork <jhuntwork@lightcubesolutions.com>
This commit is contained in:
parent
3a24e44206
commit
d310b6f85c
1 changed files with 1 additions and 1 deletions
|
@ -1048,7 +1048,7 @@ tidy_install() {
|
||||||
local pt
|
local pt
|
||||||
for pt in "${PURGE_TARGETS[@]}"; do
|
for pt in "${PURGE_TARGETS[@]}"; do
|
||||||
if [[ ${pt} = "${pt//\/}" ]]; then
|
if [[ ${pt} = "${pt//\/}" ]]; then
|
||||||
find . -type f -name "${pt}" -exec rm -f -- '{}' \;
|
find . ! -type d -name "${pt}" -exec rm -f -- '{}' \;
|
||||||
else
|
else
|
||||||
rm -f ${pt}
|
rm -f ${pt}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue