update_unicode.sh: set UNICODE_DIR only once

The value is the same on both uniset invocations, so "Don't Repeat Yourself" applies. Since this is done as the last command in the sequence, there's no need to unset UNICODE_DIR at the end. Signed-off-by: Beat Bolli <dev+git@drbeat.li> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Beat Bolli committed Dec 19, 2014 at 17:24 UTC 69d84a3b58464f1a60a1f93642ecd727a26067fa
1 file changed +3 -2
update_unicode.sh
+3 -2
@@ -27,12 +27,13 @@ fi &&
27 fi &&
28 make
29 ) && {
30 + UNICODE_DIR=. && export UNICODE_DIR &&
31 echo "static const struct interval zero_width[] = {" &&
31 - UNICODE_DIR=. ./uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD |
32 + ./uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD |
33 grep -v plane &&
34 echo "};" &&
35 echo "static const struct interval double_width[] = {" &&
35 - UNICODE_DIR=. ./uniset/uniset --32 eaw:F,W &&
36 + ./uniset/uniset --32 eaw:F,W &&
37 echo "};"
38 } >$UNICODEWIDTH_H
39 )