From 95c434acfb878fb6937ad6ffe2ed201968443de0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 24 Oct 2017 12:24:58 +0200 Subject: bin/return-assignment: the slave is in the first line of the locked file --- bin/return-assignment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index 2f60612..888ebbb 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -47,7 +47,7 @@ if [ "$5" = 'ERROR' ]; then fi # shellcheck disable=SC2154 - if ! grep -qxF "${slave}" "${work_dir}/package-states/$1.$2.$3.$4.locked"; then + if [ "${slave}" != "$(head -n1 "${work_dir}/package-states/$1.$2.$3.$4.locked")" ]; then # whoops, this package is built by someone else exit 0 fi -- cgit v1.2.3-70-g09d2