From 46b48e4003676e2264f401ebbca0d174b9b85e0c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 30 May 2020 13:18:29 +0300 Subject: [PATCH] kiss: minor changes --- kiss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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() {