1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-19 22:59:34 +00:00

tzselect: port to POSIX sh and fix a typo

* tzselect.ksh: Use portable names for trap signals.
Also, fix a typo: signal 2 (INT) was meant, not signal 12.
This commit is contained in:
Paul Eggert
2015-05-27 10:11:50 -07:00
parent fc861a9e13
commit 5ee6e8cbd1

View File

@ -191,7 +191,7 @@ done
tmp=${TMPDIR-/tmp}/tzselect.$$ &&
(umask 77 && mkdir -- "$tmp")
};} &&
trap 'status=$?; rm -fr -- "$tmp"; exit $status' 0 1 12 13 15 &&
trap 'status=$?; rm -fr -- "$tmp"; exit $status' 0 HUP INT PIPE TERM &&
(iconv -f UTF-8 -t //TRANSLIT <"$TZ_COUNTRY_TABLE" >$tmp/iso3166.tab) \
2>/dev/null &&
TZ_COUNTRY_TABLE=$tmp/iso3166.tab &&