summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-06-15 00:40:28 +0200
committertv <tv@krebsco.de>2015-06-15 00:40:28 +0200
commit0f95ccbab40680732d574331aecef4a8553f0b13 (patch)
treecfa488f421213d76ef6c1d0ee171c5cfb15edfda /modules
parent1c48b008aa77dabe7a0a9b015b28f9bad0b74806 (diff)
modules/tv/git: simplify sanity-check printf
Diffstat (limited to 'modules')
-rw-r--r--modules/tv/git.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tv/git.nix b/modules/tv/git.nix
index b7c8b56..d264125 100644
--- a/modules/tv/git.nix
+++ b/modules/tv/git.nix
@@ -216,8 +216,8 @@ in
find "$dataDir" -mindepth 2 -maxdepth 2 -name hooks -type l -delete
bad_hooks=$(find "$dataDir" -mindepth 2 -maxdepth 2 -name hooks)
if echo "$bad_hooks" | grep -q .; then
- printf "$(printf 'error: unknown hooks:\n%s' \
- "$(echo "$bad_hooks" | sed 's/^/ /')")" \
+ printf 'error: unknown hooks:\n%s\n' \
+ "$(echo "$bad_hooks" | sed 's/^/ /')" \
>&2
exit -1
fi