From 7db46d162e6dd4ccfcafc9b6c8da4a6005386a55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Th=C3=A9r=C3=A8se=20Godefroy?= Date: Fri, 29 Jan 2016 22:49:52 +0100 Subject: [PATCH] de/assemble-all-pages: fix a bug --- de/kitchen/assemble-all-pages | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/de/kitchen/assemble-all-pages b/de/kitchen/assemble-all-pages index 06a7011..75e459c 100755 --- a/de/kitchen/assemble-all-pages +++ b/de/kitchen/assemble-all-pages @@ -51,9 +51,6 @@ function close_term () { test -z "$OK" && exit $1 } -scriptdir=${0%\/assemble-all-pages} -cd $scriptdir - # Create temporary files. names=$(mktemp -t aap.XXXXXX) || close_term 1 list=$(mktemp -t aap.XXXXXX) || close_term 1 @@ -65,8 +62,7 @@ trap 'rm -f "$names" "$list" "$before" "$after"' EXIT if ls *.t.html > $names 2>/dev/null; then sed -i 's,\.t\.html$,,' $names else - echo "!!! There is no template in this directory. - Please move the script to lang/kitchen." && close_term 1 + echo "*** There is no template in this directory." && close_term 1 fi ## Add the includes to the templates. @@ -103,10 +99,9 @@ echo 'windows' >> $names while read name ; do # Find out which deletions apply. - grep '^