From baf0977f8e735a1632e812c168127926aa18ddea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Th=C3=A9r=C3=A8se=20Godefroy?= Date: Tue, 19 Aug 2014 16:22:02 +0200 Subject: [PATCH] en: fix bugs in assemble-all-pages. --- en/kitchen/assemble-all-pages | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/en/kitchen/assemble-all-pages b/en/kitchen/assemble-all-pages index 80855249..7cfdb810 100755 --- a/en/kitchen/assemble-all-pages +++ b/en/kitchen/assemble-all-pages @@ -52,10 +52,10 @@ function close_term () { } # Create temporary files. -names=$(mktemp -t aap.XXXXXX) || close_or_exit 1 -list=$(mktemp -t aap.XXXXXX) || close_or_exit 1 -before=$(mktemp -t aap.XXXXXX) || close_or_exit 1 -after=$(mktemp -t aap.XXXXXX) || close_or_exit 1 +names=$(mktemp -t aap.XXXXXX) || close_term 1 +list=$(mktemp -t aap.XXXXXX) || close_term 1 +before=$(mktemp -t aap.XXXXXX) || close_term 1 +after=$(mktemp -t aap.XXXXXX) || close_term 1 trap 'rm -f "$names" "$list" "$before" "$after"' EXIT # List all the templates in the working directory. @@ -81,7 +81,7 @@ while read name; do if [ -f "$include" ]; then cat $before $include $after > ../$name.html else - echo "$include is missing." && exit 1 + echo "$include is missing." && close_term 1 fi sed -i "/^