summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-04-01 10:17:10 +0200
committerMihai Moldovan <ionic@ionic.de>2015-04-01 10:17:10 +0200
commitd8cea8feb90874620bbaff598c6c8d844f803938 (patch)
treeeb54039ac51ad1c6648bb8c92ab46f93b49a2d94 /bin/build-rpm-package
parenta5e6b7679e970cf540567ee50605ea74b68e5388 (diff)
downloadbuildscripts-d8cea8feb90874620bbaff598c6c8d844f803938.tar.gz
buildscripts-d8cea8feb90874620bbaff598c6c8d844f803938.tar.bz2
buildscripts-d8cea8feb90874620bbaff598c6c8d844f803938.zip
bin/build-rpm-package: ignore errors when removing temporary mock config files in cleanup().
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package3
1 files changed, 2 insertions, 1 deletions
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