diff --git a/kiss b/kiss index 93ef4b4..fd7d360 100755 --- a/kiss +++ b/kiss @@ -414,10 +414,9 @@ pkg_order() { # Filter the list, only keeping explicit packages. The purpose of these # two loops is to order the argument list based on dependence. - for pkg in $deps; do contains "$*" "$pkg" && { - order="$order $pkg " - redro=" $pkg $redro" - } done + for pkg in $deps; do + contains "$*" "$pkg" && order="$order $pkg " redro=" $pkg $redro" + done deps= } @@ -549,6 +548,8 @@ pkg_etcsums() ( cd "$pkg_dir/$1" + # This can't be a simple 'find -exec' as 'sh256' is a shell function + # and not a real command of any kind. This is the shell equivalent. find etc -type f | while read -r line; do sh256 "$line" done > "$pkg_dir/$1/$pkg_db/$1/etcsums" @@ -972,7 +973,7 @@ pkg_install_files() { chmod "$b$oct" "$KISS_ROOT/$line" fi esac - done + done ||: } pkg_remove_files() {