From 8642b91eacc99b4ee7894d5dcf7203290bc56dea Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Jun 2018 10:06:28 +0200 Subject: bin/copy-to-build-support: check if package list can be read. --- bin/copy-to-build-support | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/copy-to-build-support') diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support index addd45c..016d4c0 100755 --- a/bin/copy-to-build-support +++ b/bin/copy-to-build-support @@ -59,6 +59,11 @@ if [ "$#" -ne 1 ]; then usage fi +if [ ! -r "$1" ]; then + >&2 printf 'Package-list "%s" is not readable.\n' "$1" + usage +fi + exec 9> "${sanity_check_lock_file}" verbose_flock -s ${wait_for_lock} 9 -- cgit v1.2.3-70-g09d2