summaryrefslogtreecommitdiff
path: root/bin/why-dont-you
diff options
context:
space:
mode:
Diffstat (limited to 'bin/why-dont-you')
-rwxr-xr-xbin/why-dont-you10
1 files changed, 3 insertions, 7 deletions
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}"