From 0e13adff76c5ab655df3b9fb0dcd28b4df5083f5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 22 Jun 2017 16:43:40 +0200 Subject: remove "grep ... part1*part2" bug --- bin/get-assignment | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/get-assignment') diff --git a/bin/get-assignment b/bin/get-assignment index c028007..e46dd39 100755 --- a/bin/get-assignment +++ b/bin/get-assignment @@ -40,8 +40,7 @@ hand_out_assignment() { echo "${slave}" > "${work_dir}/package-states/$1.$2.$3.$4.locked" # lock every loop this package breaks - grep -xF "${1}" "${work_dir}/build-list.loops/"loop_* | \ - cut -d: -f1 | \ + grep -lxF "${1}" "${work_dir}/build-list.loops/"loop_* | \ tee -a "${work_dir}/package-states/$1.$2.$3.$4.locked" | \ sed 's|$|.locked|' | \ xargs -rn1 touch -- cgit v1.2.3-70-g09d2