kiss: move set to where its needed

This commit is contained in:
Dylan Araps 2021-07-17 14:58:44 +03:00
parent a9fd59bfa0
commit 4072a621c7
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

6
kiss
View File

@ -129,16 +129,12 @@ file_owner() {
}
pkg_owner() {
set +f
[ "$3" ] || set -- "$1" "$2" "$sys_db"/*/manifest
[ "$3" ] || { set +f; set -f -- "$1" "$2" "$sys_db"/*/manifest; }
pkg_owner=$(grep "$@")
pkg_owner=${pkg_owner%/*}
pkg_owner=${pkg_owner##*/}
set -f
[ "$pkg_owner" ]
}