From 1061c920833a562e02584aa70e7c889a734139d8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 23 Aug 2017 21:47:11 +0200 Subject: silence even more shellcheck warnings --- bin/why_dont_you | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/why_dont_you') 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 -- cgit v1.2.3-54-g00ecf