Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/why_dont_you
diff options
context:
space:
mode:
Diffstat (limited to 'bin/why_dont_you')
-rwxr-xr-xbin/why_dont_you4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/why_dont_you b/bin/why_dont_you
index a03f50f..593ad1b 100755
--- a/bin/why_dont_you
+++ b/bin/why_dont_you
@@ -60,8 +60,8 @@ case "${action}" in
for pkg in "$@"; do
- if ! find "${work_dir}/package-states" -maxdepth 1 -printf '%f\n' | \
- grep -q "^$(str_to_regex "${pkg}")\(\.[^.]\+\)\{3\}\.done\$"; then
+ if ! find "${work_dir}/package-states" -maxdepth 1 | \
+ grep -q "/$(str_to_regex "${pkg}")\(\.[^.]\+\)\{3\}\.done\$"; then
printf '"%s" is not in staging!\n' "${pkg}"
continue
fi