From 1d6551ca356cb05e0668997559dcf0db090457e5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Nov 2017 13:39:59 +0100 Subject: bin/why-dont-you: bugfixes --- bin/why-dont-you | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'bin/why-dont-you') diff --git a/bin/why-dont-you b/bin/why-dont-you index b3d9500..25419ff 100755 --- a/bin/why-dont-you +++ b/bin/why-dont-you @@ -81,12 +81,8 @@ case "${action}" in sort -u > \ "${tmp_dir}/unmoveable-list" - { - tr ' ' '.' < \ - "${work_dir}/build-list" - find "${work_dir}/package-states" -maxdepth 1 -name "*.${suffix}" -printf '%f\n' | \ - sed 's|\.[^.]\+$||' - } | \ + find "${work_dir}/package-states" -maxdepth 1 -name "*.${suffix}" -printf '%f\n' | \ + sed 's|\.[^.]\+$||' | \ sort -u > \ "${tmp_dir}/moveable-list" @@ -107,7 +103,7 @@ case "${action}" in for pkg in "$@"; do if ! state_file=$( - grep "^$(str_to_regex "${pkg}")\(\.[^.]\+\)\{3\}$" "${tmp_dir}/moveable-list" + grep "^$(str_to_regex "${pkg}")\(\.[^.]\+\)\{3\}\$" "${tmp_dir}/moveable-list" ) || \ [ ! -f "${work_dir}/package-states/${state_file}.${suffix}" ]; then printf '"%s" is not %s yet!\n' "${pkg}" "${suffix}" -- cgit v1.2.3-70-g09d2