modules/tv/git: simplify sanity-check printf
This commit is contained in:
parent
61f60acc33
commit
9abc410563
@ -216,8 +216,8 @@ in
|
|||||||
find "$dataDir" -mindepth 2 -maxdepth 2 -name hooks -type l -delete
|
find "$dataDir" -mindepth 2 -maxdepth 2 -name hooks -type l -delete
|
||||||
bad_hooks=$(find "$dataDir" -mindepth 2 -maxdepth 2 -name hooks)
|
bad_hooks=$(find "$dataDir" -mindepth 2 -maxdepth 2 -name hooks)
|
||||||
if echo "$bad_hooks" | grep -q .; then
|
if echo "$bad_hooks" | grep -q .; then
|
||||||
printf "$(printf 'error: unknown hooks:\n%s' \
|
printf 'error: unknown hooks:\n%s\n' \
|
||||||
"$(echo "$bad_hooks" | sed 's/^/ /')")" \
|
"$(echo "$bad_hooks" | sed 's/^/ /')" \
|
||||||
>&2
|
>&2
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user