From: Phil Pennock Date: Mon, 3 Oct 2011 23:16:36 +0000 (-0400) Subject: source referenced version.sh file always X-Git-Tag: exim-4_77_RC2^0 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/c6554334704090e9c8aa81fa34140da7b5fd9ae6 source referenced version.sh file always Tested for version.sh in cwd, but used . to source, assuming that would pull in file from cwd. True on BSD (checked after $PATH) but not part of POSIX and not true for bash when in POSIX mode. --- diff --git a/src/scripts/reversion b/src/scripts/reversion index 7bc56f620..32a867f25 100755 --- a/src/scripts/reversion +++ b/src/scripts/reversion @@ -5,8 +5,8 @@ # Read version information that was generated by a previous run of # this script, or during the release process. -if [ -f version.sh ] -then . version.sh +if [ -f ./version.sh ] +then . ./version.sh elif [ -f ../src/version.sh ] then . ../src/version.sh fi