From b07ae3a0d922f0d43b2245017d67e8b70be1da90 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 06 Jun 2019 10:34:36 -0400 Subject: build: Set p before inner loop --- diff --git a/build b/build index 6058b66..f632b1a 100755 --- a/build +++ b/build @@ -37,10 +37,10 @@ install: build ln -sf /usr/share/zoneinfo/Factory tzdata.data/etc/localtime # Install time zones. set -e; for t in $(tables); do \ - src/zic -d tzdata-$${t}.data/usr/share/zoneinfo src/$${t}; \ + p="tzdata-$${t}"; \ + src/zic -d "$${p}.data/usr/share/zoneinfo" "src/$${t}"; \ grep '^L' src/$${t} | while read type dest src etc; do \ rm -f "tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ - p="tzdata-$${t}"; \ link="$${src}" up=''; \ while [ x"$${link#*/}" != x"$${link}" ] && \ [ x"$${link%%/*}" = x"$${dest%%/*}" ]; do \ -- cgit v0.9.1