Skip to content

Commit

Permalink
ICU minor version could be 0 which can cause expr to exit with a non-…
Browse files Browse the repository at this point in the history
…zero status thus terminating the configure script prematurely; Treat this as a benign error scenario
  • Loading branch information
nars1 committed Sep 27, 2017
1 parent eef974f commit 434f8b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sr_unix/configure.gtc
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,12 @@ if [ -d "utf8" ]; then
# set the gtm_icu_version
if [ "$found_icu" -eq 1 -a "$majmin" -ge 36 ] ; then
save_icu_libpath="$libpath"
# "expr" used below can exit with 1 if $majmin is a multiple of 10 and so
# temporarily suspend "set -e"
set +e
minorver=`expr $majmin % 10`
majorver=`expr $majmin / 10`
set -e
gtm_icu_version="$majorver.$minorver"
export gtm_icu_version
break
Expand Down

0 comments on commit 434f8b4

Please sign in to comment.