From d8cea8feb90874620bbaff598c6c8d844f803938 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 1 Apr 2015 10:17:10 +0200 Subject: bin/build-rpm-package: ignore errors when removing temporary mock config files in cleanup(). --- bin/build-rpm-package | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/build-rpm-package') diff --git a/bin/build-rpm-package b/bin/build-rpm-package index a034ce1..be686c9 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -83,7 +83,8 @@ cleanup () { if [ ! -f "${file}" ]; then echo "Warning: mock temporary config file ${file} is not a regular file. Not unlinking." >&2 else - rm "${TMP_MOCK_CFG_DIR}/*" + # Remove and ignore errors. + rm "${TMP_MOCK_CFG_DIR}/${file}" || : fi done -- cgit v1.2.3