Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-07 10:06:28 +0200
committerErich Eckner <git@eckner.net>2018-06-07 10:06:28 +0200
commit8642b91eacc99b4ee7894d5dcf7203290bc56dea (patch)
tree67f78dfb0c9a3bdc01cf1994995aa4905502ffcc
parent1606ed8bef2e8976c2b847678e8a77af99541383 (diff)
bin/copy-to-build-support: check if package list can be read.
-rwxr-xr-xbin/copy-to-build-support5
1 files changed, 5 insertions, 0 deletions
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