diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 07:22:30 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 07:22:30 +0200 |
commit | 7a992b32bef068f119ceeb09aaf1a8b81d5dfef2 (patch) | |
tree | 50d8529da5843f3d77065b0b4c10cd43a274fd3d /bin/build-rpm-package | |
parent | a8fe13f19fd5631f7b9f8d7ffcf2fcfd85562464 (diff) | |
download | buildscripts-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-x | bin/build-rpm-package | 6 |
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 |