summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-04-01 07:22:30 +0200
committerMihai Moldovan <ionic@ionic.de>2015-04-01 07:22:30 +0200
commit7a992b32bef068f119ceeb09aaf1a8b81d5dfef2 (patch)
tree50d8529da5843f3d77065b0b4c10cd43a274fd3d /bin/build-rpm-package
parenta8fe13f19fd5631f7b9f8d7ffcf2fcfd85562464 (diff)
downloadbuildscripts-7a992b32bef068f119ceeb09aaf1a8b81d5dfef2.tar.gz
buildscripts-7a992b32bef068f119ceeb09aaf1a8b81d5dfef2.tar.bz2
buildscripts-7a992b32bef068f119ceeb09aaf1a8b81d5dfef2.zip
bin/build-rpm-package: base mock config base shall better be readable, OR ELSE!
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index de2e02d..3f4dd27 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -257,9 +257,9 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET
exit -1
}
- # Must exist.
- if [ ! -f "/etc/mock/${!i}" ]; then
- echo "Error: ${i} parameter must exist and be a regular file." >&2
+ # Must exist and be readable.
+ if [ ! -f "/etc/mock/${!i}" ] || [ ! -r "/etc/mock/${!i}" ]; then
+ echo "Error: ${i} parameter must exist, be a regular file and readable." >&2
exit -1
fi
done