diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 10:17:10 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 10:17:10 +0200 |
commit | d8cea8feb90874620bbaff598c6c8d844f803938 (patch) | |
tree | eb54039ac51ad1c6648bb8c92ab46f93b49a2d94 /bin/build-rpm-package | |
parent | a5e6b7679e970cf540567ee50605ea74b68e5388 (diff) | |
download | buildscripts-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-x | bin/build-rpm-package | 3 |
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 |