kiss: Don't hardcode path to charset.alias

This commit is contained in:
Dylan Araps 2020-05-17 09:26:00 +03:00
parent 33b8ef33bb
commit 99f007c24f
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 3 additions and 2 deletions

5
kiss
View File

@ -713,8 +713,9 @@ pkg_build() {
# We never ever want this. Let's end the endless conflicts
# and remove it. This will be the only exception for a
# specific removal of this kind.
rm -f "$pkg_dir/$pkg/usr/lib/charset.alias"
# specific removal of this kind. A 'find' is used instead
# of 'rm' so as to not hardcode the location to this file.
find "$pkg_dir/$pkg" -type f -name charset.alias -exec rm -f {} +
log "$pkg" "Successfully built package"
run_hook post-build "$pkg" "$pkg_dir/$pkg"