From 8cefda70e55449fce538b7f8cc8f62bd86868259 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 4 Jan 2013 02:18:16 +0100 Subject: remove empty directories silently --- bin/d-i_manual.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh index 910fdafd..3ef7fdbc 100755 --- a/bin/d-i_manual.sh +++ b/bin/d-i_manual.sh @@ -77,7 +77,7 @@ build_language() { # remove directories if they are empty and in the case of pdf, leave a empty pdf # maybe it is indeed better not to create these jobs in the first place... # this is due to "Warning: pdf and ps formats are currently not supported for Chinese, Greek, Japanese and Vietnamese" - (rmdir $FORMAT/* && rmdir $FORMAT ) || true + (rmdir $FORMAT/* 2>/dev/null && rmdir $FORMAT 2>/dev/null ) || true if [ "$FORMAT" = "pdf" ] && [ ! -d $FORMAT ] ; then mkdir -p pdf/dummy touch pdf/dummy/dummy.pdf -- cgit v1.2.3-54-g00ecf