owns: Fix bug.

This commit is contained in:
Dylan Araps 2019-07-22 00:38:34 +03:00
parent 027dd6f45c
commit 69b63a1df1

4
kiss
View File

@ -931,8 +931,8 @@ args() {
# Check which package owns a file.
o*)
shift
[ "$1" ] || die "'kiss owns' requires an argument."
[ -f "$1" ] || die "File '$1' doesn't exist."
[ "$1" ] || die "'kiss owns' requires an argument."
[ -f "$KISS_ROOT/$1" ] || die "File '$1' doesn't exist."
set +f
pkg_owns=$(grep -lFx "$1" "$KISS_ROOT/$pkg_db/"*/manifest)