diff options
Diffstat (limited to 'bin/why_dont_you')
-rwxr-xr-x | bin/why_dont_you | 4 |
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 |