From f490f3d5b041cd39e455a625b7af784cfb57af80 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 19 Jul 2021 17:54:57 +0300 Subject: [PATCH] misc: nits --- kiss | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kiss b/kiss index dfb9d3d..60ebe78 100755 --- a/kiss +++ b/kiss @@ -1241,13 +1241,13 @@ pkg_remove_files() { case $file in /etc/?*[!/]) sh256 "$KISS_ROOT/$file" >/dev/null - read -r sum_pkg <&3 2>/dev/null ||: + read -r sum_pkg <&3 ||: equ "$hash" "$sum_pkg" || { printf 'Skipping %s (modified)\n' "$file" continue } - esac 2>/dev/null || : + esac _file=${KISS_ROOT:+"$KISS_ROOT/"}${file%%/} @@ -1267,9 +1267,6 @@ pkg_remove_files() { fi done - # First argument needs to be dropped. - shift - # Remove all broken directory symlinks. for sym do [ -e "$sym" ] || rm -f "$sym"