Skip to content

Commit

Permalink
[#197] Fix syntax error in ydb_env_set.gtc (fi in same line as if nee…
Browse files Browse the repository at this point in the history
…ds a preceding semicolon)

Before this fix, the following error used to show up if one sourced ydb_env_set

$ . ydb_env_set
sh: 82: ydb_env_set: Syntax error: end of file unexpected (expecting "fi")
  • Loading branch information
nars1 committed May 8, 2018
1 parent e2ded96 commit d933251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sr_unix/ydb_env_set.gtc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ fi
# Save ydb_routines / gtmroutines if defined because
# this script will overwrite ydb_routines if defined
# to make sure there is a path to the required routine
if [ ! -z "$gtmroutines" ] ; then ydb_tmp_routines="$gtmroutines" fi
if [ ! -z "$ydb_routines" ] ; then ydb_tmp_routines="$ydb_routines" fi
if [ ! -z "$gtmroutines" ] ; then ydb_tmp_routines="$gtmroutines" ; fi
if [ ! -z "$ydb_routines" ] ; then ydb_tmp_routines="$ydb_routines" ; fi

# Save environment variables if they exist, which may be needed for tmp and log directories
if [ ! -z "$ydb_rel" ] ; then export ydb_tmp_rel=$ydb_rel ; fi
Expand Down

0 comments on commit d933251

Please sign in to comment.