Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-24 12:24:58 +0200
committerErich Eckner <git@eckner.net>2017-10-24 12:24:58 +0200
commit95c434acfb878fb6937ad6ffe2ed201968443de0 (patch)
tree75b63cec226b451d007e9884ca31297a0c23873b /bin/return-assignment
parent9af832676971cd9adb60378b1e7c876938fecc04 (diff)
bin/return-assignment: the slave is in the first line of the locked file
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment2
1 files changed, 1 insertions, 1 deletions
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