blob: 100d08599c9d0abe7f66e6e94974861cca6c80de [file] [log] [blame]
Patrick Williams0ca19cc2021-08-16 14:03:13 -05001From 2731fa0c7463cd160361a8ac92f3bd7f984d953d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 00:33:03 +0000
4Subject: [PATCH] timezone: re-written tzselect as posix sh
5
6To avoid the bash dependency.
7
8Upstream-Status: Pending
9
10Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 timezone/tzselect.ksh | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh
17index 18fce27e24..7705df83d7 100755
18--- a/timezone/tzselect.ksh
19+++ b/timezone/tzselect.ksh
20@@ -1,4 +1,4 @@
21-#!/bin/bash
22+#!/bin/sh
23 # Ask the user about the time zone, and output the resulting TZ value to stdout.
24 # Interact with the user via stderr and stdin.
25
26@@ -34,7 +34,7 @@ REPORT_BUGS_TO=tz@iana.org
27
28 # Specify default values for environment variables if they are unset.
29 : ${AWK=awk}
30-: ${TZDIR=`pwd`}
31+: ${TZDIR=$(pwd)}
32
33 # Output one argument as-is to standard output.
34 # Safer than 'echo', which can mishandle '\' or leading '-'.