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-06-14 15:34:35 +0200
committerErich Eckner <git@eckner.net>2017-06-14 15:34:35 +0200
commitf25f9462a68a968a676d555613cdfa6e7516cad1 (patch)
treebcdb90a02c51fcda2bade146de79848b6e7151d7 /bin/return-assignment
parent2f0ca615e49a34907ac4864908581aaa7a1b9558 (diff)
replace some regexes with string-match grep
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 2262c0a..9fd6591 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -161,7 +161,7 @@ ls "${work_dir}/package-states" | \
xargs -rn1 rm -f
# remove all loops which are broken by this package
-grep "^${1//./\\.}\$" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \
+grep -xF "$1" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \
cut -d: -f1 | \
sed 'p;s|$|.locked|' | \
xargs -rn1 rm -f