TheRepoClub-DotFiles/localbin/.local/bin/kiss/kiss-preferred
The-Repo-Club 127f414edb
Added Kiss package manager
Signed-off-by: The-Repo-Club <wayne6324@gmail.com>
2022-10-02 12:59:09 +01:00

13 lines
284 B
Bash
Executable File

#!/bin/sh -e
# Lists the owners of all files with conflicts
kiss a | while read -r _ path; do
if owner=$(kiss owns "$path" 2>/dev/null) && [ "$owner" ]; then
printf '%s %s\n' "$owner" "$path"
else
printf 'warning: %s has no owner\n' "$path" >&2
fi
done