1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-09-28 12:22:39 -06:00

kiss: Remove func subshell use

This commit is contained in:
Dylan Araps 2020-04-22 09:18:12 +03:00
parent c8029d6a71
commit 6e3064d0f8
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -813,7 +813,7 @@ pkg_swap() {
sed -i "$(esc "$PWD/$alt" "$2")" "../installed/$1/manifest" sed -i "$(esc "$PWD/$alt" "$2")" "../installed/$1/manifest"
} }
pkg_install_files() ( pkg_install_files() {
awk '{L[n++]=$0}END{while(n--)print L[n]}' "$2/$pkg_db/${2##*/}/manifest" | awk '{L[n++]=$0}END{while(n--)print L[n]}' "$2/$pkg_db/${2##*/}/manifest" |
while read -r line; do while read -r line; do
@ -826,7 +826,7 @@ pkg_install_files() (
chown -h root:root "$line" chown -h root:root "$line"
done done
) }
pkg_etc() { pkg_etc() {
[ -d "$tar_dir/$pkg_name/etc" ] || return 0 [ -d "$tar_dir/$pkg_name/etc" ] || return 0