diff options
-rwxr-xr-x | build | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -44,12 +44,12 @@ install: build fi; \ rm -f "$${p}.data/usr/share/zoneinfo/$${src}"; \ link="$${src}" up=''; \ - while [ "$${link#*/}" != "$${link}" ] && \ - [ "$${link%%/*}" = "$${dest%%/*}" ]; do \ + while [ x"$${link#*/}" != x"$${link}" ] && \ + [ x"$${link%%/*}" = x"$${dest%%/*}" ]; do \ link="$${link#*/}"; \ dest="$${dest#*/}"; \ done; \ - while [ "$${link#*/}" != "$${link}" ]; do \ + while [ x"$${link#*/}" != x"$${link}" ]; do \ link="$${link#*/}"; \ up="../$${up}"; \ done; \ @@ -68,12 +68,12 @@ install: build $(tables))"; \ fi; \ link="$${src}" up=''; \ - while [ "$${link#*/}" != "$${link}" ] && \ - [ "$${link%%/*}" = "$${dest%%/*}" ]; do \ + while [ x"$${link#*/}" != x"$${link}" ] && \ + [ x"$${link%%/*}" = x"$${dest%%/*}" ]; do \ link="$${link#*/}"; \ dest="$${dest#*/}"; \ done; \ - while [ "$${link#*/}" != "$${link}" ]; do \ + while [ x"$${link#*/}" != x"$${link}" ]; do \ link="$${link#*/}"; \ up="../$${up}"; \ done; \ |