20 lines
570 B
Diff
20 lines
570 B
Diff
Avoid dependencies to bash, in order to reduce the bootstrap chain,
|
|
However, this utility works better with bash because of select builtin
|
|
--- a/tzselect.ksh
|
|
+++ b/tzselect.ksh
|
|
@@ -2,6 +2,14 @@
|
|
# Ask the user about the time zone, and output the resulting TZ value to stdout.
|
|
# Interact with the user via stderr and stdin.
|
|
|
|
+if [ -z "$BASH_VERSION$KSH_VERSION" ]; then
|
|
+ if [ -x /bin/ksh ]; then
|
|
+ exec /bin/ksh "$0" "$@"
|
|
+ elif [ -x /bin/bash ]; then
|
|
+ exec /bin/bash "$0" "$@"
|
|
+ fi
|
|
+fi
|
|
+
|
|
PKGVERSION='(tzcode) '
|
|
TZVERSION=see_Makefile
|
|
REPORT_BUGS_TO=tz@iana.org
|