kiss: Minor changes

This commit is contained in:
Dylan Araps 2020-03-25 11:59:15 +02:00
parent c84472e531
commit 58b0272574
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,7 @@ clean() {
log Cleaning leftover host files; {
rm -f "$1/root/.ash_history"
rm -f "$1/etc/resolv.conf"
}
}
@ -38,7 +39,7 @@ main() {
}
log Copying /etc/resolv.conf from host; {
[ -f "$1/etc/resolv.conf" ] || cp /etc/resolv.conf "$1/etc"
cp -f /etc/resolv.conf "$1/etc"
}
log Entering chroot; {

4
kiss
View File

@ -98,7 +98,6 @@ decompress() {
}
pkg_lint() {
# Check that each mandatory file in the package entry exists.
log "$1" "Checking repository files"
cd "$(pkg_find "$1")"
@ -372,7 +371,8 @@ pkg_strip() {
# Suppress errors here as some binaries and libraries may
# fail to strip. This is OK.
strip "--strip-$strip_opt" "$file" 2>/dev/null ||:
strip "--strip-$strip_opt" "$file" 2>/dev/null &&
printf 'Stripped %10s %s\n' "($strip_opt)" "${file##$pkg_dir/$1}"
done
}