forked from kiss-community/kiss
kiss-preferred: fixes
This commit is contained in:
parent
7fdf69dfc2
commit
367923b378
@ -1,7 +1,12 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
# Lists the owners of all files with conflicts
|
# Lists the owners of all files with conflicts
|
||||||
|
|
||||||
kiss a | sort -u -k2 | while read -r _ path; do
|
kiss a | while read -r _ path; do
|
||||||
echo "$(kiss owns "$path")" "$path"
|
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
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user