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_you6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/why_dont_you b/bin/why_dont_you
index 2d28f85..8b2e49c 100755
--- a/bin/why_dont_you
+++ b/bin/why_dont_you
@@ -14,7 +14,11 @@ case "${action}" in
'build')
for pkg in "$@"; do
- grep "^$(str_to_regex "${pkg}") " "${work_dir}/build-list" | \
+ (
+ grep "^$(str_to_regex "${pkg}") " "${work_dir}/build-list" || \
+ >&2 printf '"%s" is not on the build list.\n' "${pkg}"
+ continue
+ ) | \
while read -r package git_revision mod_git_revision repository; do
if [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.done" ] ||