remove pipe from script

This commit is contained in:
Martin A. Brown 2016-02-27 10:46:18 -08:00
parent 29a109de3a
commit 5f11427f38
1 changed files with 1 additions and 2 deletions

View File

@ -147,8 +147,7 @@ class DocbookSGML(BaseDoctype, SignatureChecker):
logger.error("%s (cowardly) refusing to clean directory %s", cwd)
logger.error("%s expected to find %s", self.output.dirname)
return False
s = '''find . -mindepth 1 -maxdepth 1 -type f -print0 \
| xargs --null --no-run-if-empty -- rm -f --'''
s = '''find . -mindepth 1 -maxdepth 1 -not -type d -delete -print'''
return self.shellscript(s)
@depends(graph, cleaned_indexsgml)