misc: nits

This commit is contained in:
Dylan Araps 2021-07-19 17:54:57 +03:00
parent 6c40c27229
commit f490f3d5b0
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

7
kiss
View File

@ -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"