0017-timezone-re-written-tzselect-as-posix-sh.patch 1.0 KB

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