1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 05:55:36 -07:00
kiss/contrib/kiss-preferred
2020-11-19 11:48:33 +02: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